aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-snippets/snippets/mustache.snippets
diff options
context:
space:
mode:
Diffstat (limited to 'vim/bundle/vim-snippets/snippets/mustache.snippets')
-rw-r--r--vim/bundle/vim-snippets/snippets/mustache.snippets18
1 files changed, 18 insertions, 0 deletions
diff --git a/vim/bundle/vim-snippets/snippets/mustache.snippets b/vim/bundle/vim-snippets/snippets/mustache.snippets
new file mode 100644
index 0000000..8296afc
--- /dev/null
+++ b/vim/bundle/vim-snippets/snippets/mustache.snippets
@@ -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}}