if, ife and ifn snippets for Mustache
This commit is contained in:
parent
5aed7e10cb
commit
55213060ad
18
snippets/mustache.snippets
Normal file
18
snippets/mustache.snippets
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# if {{#value}} ... {{/value}}
|
||||||
|
snippet if
|
||||||
|
{{#${1:value}}}
|
||||||
|
${0}
|
||||||
|
{{/$1}}
|
||||||
|
# if not {{^value}} ... {{/value}}
|
||||||
|
snippet ifn
|
||||||
|
{{^${1:value}}}
|
||||||
|
${0}
|
||||||
|
{{/$1}}
|
||||||
|
# if else {{#value}} ... {{/value}} {{^value}} ... {{/value}}
|
||||||
|
snippet ife
|
||||||
|
{{#${1:value}}}
|
||||||
|
${2}
|
||||||
|
{{/$1}}
|
||||||
|
{{^$1}}
|
||||||
|
${3}
|
||||||
|
{{/$1}}
|
Loading…
Reference in New Issue
Block a user