Last active
September 3, 2021 13:14
-
-
Save lifeart/cb6847c6b7bd250df10a9433b8d502a3 to your computer and use it in GitHub Desktop.
glimmer snippets // https://snippet-generator.app/ https://code.visualstudio.com/docs/editor/userdefinedsnippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"each autocomplete": { | |
"prefix": "{{#each", | |
"body": [ | |
"{{#each ${1:items} as |${2:item}|}}", | |
" ${3:content}", | |
"{{/each" | |
], | |
"description": "each autocomplete" | |
}, | |
"let autocomplete": { | |
"prefix": "{{#let", | |
"body": [ | |
"{{#let ${1:items} as |${2:item}|}}", | |
" ${3:content}", | |
"{{/let" | |
], | |
"description": "let autocomplete" | |
}, | |
"named slot autocomplete": { | |
"prefix": "<:", | |
"body": [ | |
"<:${1:name}>", | |
" ${2:content}", | |
"</:${1:name}>" | |
], | |
"description": "named slot autocomplete" | |
}, | |
"has block autocomplete": { | |
"prefix": "{{#if (has-block", | |
"body": [ | |
"{{#if (has-block \"${1:name}\")}}", | |
" {{yield to=\"${1:name}\" ${2:data}}}", | |
"{{/if" | |
], | |
"description": "has block autocomplete" | |
}, | |
"yeild block autocomplete": { | |
"prefix": "{{yield", | |
"body": [ | |
"{{yield to=\"${1:default}\" ${2:data}" | |
], | |
"description": "has block autocomplete" | |
}, | |
"on modifier autocomplete": { | |
"prefix": "{{on ", | |
"body": [ | |
"{{on \"${1:event}\" this.${2:handler}}}" | |
], | |
"description": "on modifier autocomplete" | |
}, | |
"concat helper autocomplete": { | |
"prefix": "(concat", | |
"body": [ | |
"(concat ${1:prop1} ${2:prop2})" | |
], | |
"description": "concat helper autocomplete" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment