-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
Pug Version: 3.0.2
Node Version: 18.20.3
Input JavaScript Values
pug.renderFile('input.pug', {
whatIsIt: 'language',
});Input Pug
@if (pugSupportsNewAngularControlFlow) {
h1 I Love Pug
p It's a great #{whatIsIt}
} @else {
p Can you please add support for new angular control flow?
} Expected HTML
@if (pugSupportsNewAngularControlFlow) {
<h1>I Love Pug</h1>
<p>It's a great language</p>
} @else {
<p>Can you please add support for new angular control flow?</p>
} Actual HTML
unexpected text "@if (" - line 1:1
Additional Comments
Angular introduced new control flow, which works in html templates: https://angular.dev/guide/templates/control-flow and
It would be great if pug could support it, with proper syntax highliting in IntelliJ (that part is perhaps on IntelliJ side, but pug needs to support the syntax first).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels