Add snippet for handlebars icons
This commit is contained in:
parent
1a2b465e6a
commit
337edb87ec
1 changed files with 9 additions and 0 deletions
9
.vscode/handlebars.code-snippets
vendored
9
.vscode/handlebars.code-snippets
vendored
|
|
@ -24,5 +24,14 @@
|
||||||
"scope": "handlebars,html",
|
"scope": "handlebars,html",
|
||||||
"prefix": "i18n",
|
"prefix": "i18n",
|
||||||
"body": ["localize \"dotdungeon.$1\""]
|
"body": ["localize \"dotdungeon.$1\""]
|
||||||
|
},
|
||||||
|
"Icon": {
|
||||||
|
"scope": "handlebars,html",
|
||||||
|
"prefix": "icon",
|
||||||
|
"body": [
|
||||||
|
"<div aria-hidden=\"true\" class=\"icon icon--${1:20}\">",
|
||||||
|
"\t{{{ $2 }}}",
|
||||||
|
"</div>"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue