vimrc/sources_non_forked/vim-snippets/snippets/handlebars.snippets

15 lines
298 B
Text
Raw Normal View History

2016-12-27 14:46:49 +00:00
snippet if # {{#if value}} ... {{/if}}
{{#if ${1:value}}}
2017-02-11 13:01:38 +00:00
${0:${VISUAL}}
2016-12-27 14:46:49 +00:00
{{/if}}
snippet ifn # {{#unless value}} ... {{/unless}}
{{#unless ${1:value}}}
2017-02-11 13:01:38 +00:00
${0:${VISUAL}}
2016-12-27 14:46:49 +00:00
{{/unless}}
snippet ife # {{#if value}} ... {{else}} .. {{/if}}
{{#if ${1:value}}}
2017-02-11 13:01:38 +00:00
${2:${VISUAL}}
2016-12-27 14:46:49 +00:00
{{else}}
${3}
{{/if}}