summaryrefslogtreecommitdiff
path: root/snippets/mustache.snippets
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-08-28 12:24:01 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-08-28 12:24:01 +0100
commit823302458ec6c53455a3f34674415c43ce6a3187 (patch)
tree92168b44b01f5b2236b7cdf331e227c4790431ee /snippets/mustache.snippets
parent9ea6111717518625cbd28a020493ec06610ff01e (diff)
Added snippets directory
Diffstat (limited to 'snippets/mustache.snippets')
-rw-r--r--snippets/mustache.snippets15
1 files changed, 15 insertions, 0 deletions
diff --git a/snippets/mustache.snippets b/snippets/mustache.snippets
new file mode 100644
index 0000000..cf58940
--- /dev/null
+++ b/snippets/mustache.snippets
@@ -0,0 +1,15 @@
+snippet if # {{#value}} ... {{/value}}
+ {{#${1:value}}}
+ ${0:${VISUAL}}
+ {{/$1}}
+snippet ifn # {{^value}} ... {{/value}}
+ {{^${1:value}}}
+ ${0:${VISUAL}}
+ {{/$1}}
+snippet ife # {{#value}} ... {{/value}} {{^value}} ... {{/value}}
+ {{#${1:value}}}
+ ${2:${VISUAL}}
+ {{/$1}}
+ {{^$1}}
+ ${3}
+ {{/$1}}