Skip to content

Commit

Permalink
fix(pv-create-component): if component is created w/o a hbs template,…
Browse files Browse the repository at this point in the history
… dont reference it in the demo
  • Loading branch information
mbehzad committed Jun 21, 2024
1 parent cf0c2bd commit bba5295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pv-create-component/lib/templates/hbsDemoTemplate.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = function({componentName, dataFile}) {
module.exports = function({componentName, dataFile, hasHbs}) {
return (
`---
layout: default
---
{{> ${componentName}${dataFile ? ` @root.${componentName}__data` : ""}}}
${hasHbs ? `{{> ${componentName}${dataFile ? ` @root.${componentName}__data` : ""}}}` : ""}
`);
};

0 comments on commit bba5295

Please sign in to comment.