Skip to content

Commit

Permalink
fix(template): escape curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Feb 25, 2024
1 parent 953a3a9 commit 6b89618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/commands/MakeViewCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class MakeViewCommand extends BaseCommand {
)
const file = await this.generator
.fileName(this.name)
.extension('edge')
.destination(destination)
.template('view')
.setNameProperties(true)
Expand Down
2 changes: 1 addition & 1 deletion templates/view.edge
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</head>
<body>
<h1>
Hello world from {{ request.baseUrl }} endpoint
Hello world from @{{ request.baseUrl }} endpoint
</h1>
</body>
</html>

0 comments on commit 6b89618

Please sign in to comment.