diff --git a/packages/pv-create-component/lib/templates/hbsDemoTemplate.js b/packages/pv-create-component/lib/templates/hbsDemoTemplate.js index e009ebd..6202bca 100644 --- a/packages/pv-create-component/lib/templates/hbsDemoTemplate.js +++ b/packages/pv-create-component/lib/templates/hbsDemoTemplate.js @@ -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` : ""}}}` : ""} `); };