Skip to content

Commit ef22449

Browse files
committed
Update handlebars language
1 parent 7615560 commit ef22449

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

language/languages/handlebars.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
11

22
{
33
"name": "handlebars",
4+
45
"replace": {
5-
"format": "{{||%1||}}"
6+
"format": "{{[%_variable_]}}"
67
},
78
"list": {
8-
"open": "{{#||%1||}}",
9-
"close": "{{/||%1||}}",
10-
"objectProperty": "{{||%1||}}",
9+
"open": "{{#[%_variable_]}}",
10+
"close": "{{/[%_variable_]}}",
11+
"objectProperty": "{{[%_variable_]}}",
1112
"primitive": "{{.}}"
1213
},
1314
"control": {
1415
"ifTruthy": {
15-
"open": "{{#if_truthy ||%1||}}",
16+
"open": "{{#if_truthy [%_variable_]}}",
1617
"close": "{{/if_truthy}}"
1718
},
1819
"ifFalsy": {
19-
"open": "{{#if_falsy ||%1||}}",
20+
"open": "{{#if_falsy [%_variable_]}}",
2021
"close": "{{/if_falsy}}"
2122
},
2223
"ifEqual": {
23-
"open": "{{#if_equal ||%1|| ||%2||}}",
24+
"open": "{{#if_equal [%_variable_] [%_variable_]}}",
2425
"close": "{{/if_equal}}"
2526
},
2627
"ifNotEqual": {
27-
"open": "{{#if_not_equal ||%1|| ||%2||}}",
28+
"open": "{{#if_not_equal [%_variable_] [%_variable_]}}",
2829
"close": "{{/if_not_equal}}"
2930
},
31+
"else": {
32+
"open": "{{else}}",
33+
"close": "{{/else}}"
34+
}
3035
}
3136
}

0 commit comments

Comments
 (0)