From 55213060adceb4d3ad5c60bb1513442e75387731 Mon Sep 17 00:00:00 2001 From: Mathew Attlee Date: Tue, 24 May 2016 15:28:12 +0100 Subject: [PATCH] if, ife and ifn snippets for Mustache --- snippets/mustache.snippets | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 snippets/mustache.snippets diff --git a/snippets/mustache.snippets b/snippets/mustache.snippets new file mode 100644 index 0000000..8296afc --- /dev/null +++ b/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}}