Skip to content

Commit 6a702d6

Browse files
committed
fix(core): make sure escape template tag for generation
1 parent 6a7b1ca commit 6a702d6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: libs/plugin/src/generators/init/generator.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ ${appComponentTemplateContent}
168168
'Identifier[name="template"] ~ NoSubstitutionTemplateLiteral',
169169
(node: NoSubstitutionTemplateLiteral) => {
170170
return generateExperience === 'append'
171-
? `
171+
? `\`
172172
${node.getFullText()}
173-
<ngt-canvas [sceneGraph]="scene" />`
174-
: `<ngt-canvas [sceneGraph]="scene" />`;
173+
<ngt-canvas [sceneGraph]="scene" />\``
174+
: `\`<ngt-canvas [sceneGraph]="scene" />\``;
175175
},
176176
);
177177
}

0 commit comments

Comments
 (0)