Snippets for can-stache files (Language mode = handlebars).
Below is a list of all available snippets and the triggers of each one. The →
means the TAB
key.
Trigger | Content |
---|---|
if→ |
{{#if(expression)}} |
else→ |
{{else}} |
ife→ |
{{#if(expression)}}FN{{else}}INVERSE{{/if}} |
un→ |
{{#unless(expression)}} |
une→ |
{{#unless(expression)}}FN{{else}}INVERSE{{/unless}} |
each→ |
{{#each(expression)}} |
with→ |
{{#with(expression)}} |
cl→ |
{{console.log([expression])}} |
ct→ |
console.time / console.timeEnd |
cta→ |
console.table |
debug→ |
{{debugger()}} |
is→ |
{{#is(expressions)}} |
ise→ |
{{#is([expression...])}}FN{{else}}INVERSE{{/is}} |
switch→ |
{{#switch(expression)}} |
case→ |
{{#case(expression)}} |
def→ |
{{#default()}} |
jb→ |
{{joinBase(expressions)}} |
domd→ |
{{domData(expression)}} |