Skip to content

Commit a4b4ae3

Browse files
committed
added: @{fi} alias for @{endif}
1 parent 138ea48 commit a4b4ae3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ function view_parse(content, minify) {
18001800
builder += ';if (' + cmd.substring(3) + '){$output+=$EMPTY';
18011801
} else if (cmd === 'else') {
18021802
builder += '} else {$output+=$EMPTY';
1803-
} else if (cmd === 'endif') {
1803+
} else if (cmd === 'endif' || cmd === 'fi') {
18041804
builder += '}$output+=$EMPTY'
18051805
} else {
18061806
tmp = view_prepare(command.command, newCommand, functionsName);

test/views/parse.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99

1010
@{if model.a !== model.b}
1111
FUJ
12-
@{endif}
12+
@{fi}

0 commit comments

Comments
 (0)