platform/packages/vscode/angel_vscode/snippets/jael.json

54 lines
1.4 KiB
JSON
Raw Normal View History

2018-11-12 18:35:17 +00:00
{
".source.jael": {
"block": {
"prefix": "block",
"description": "Insert a named <block> tag.",
2018-11-12 20:50:52 +00:00
"body": ["<block name=\"$1\">", " $2", "</block>"]
2018-11-12 18:35:17 +00:00
},
"comment": {
"prefix": "comment",
"description": "Insert a comment.",
"body": ["<!-- $1 -->"]
},
"declare": {
"prefix": "declare",
"description": "Insert a <declare> tag.",
2018-11-12 20:50:52 +00:00
"body": ["<declare $1=$2>", " $3", "</declare>"]
2018-11-12 18:35:17 +00:00
},
"element": {
"prefix": "element",
"description": "Insert a custom <element> tag.",
2018-11-12 20:50:52 +00:00
"body": ["<element name=\"$1\">", " $2", "</element>"]
2018-11-12 18:35:17 +00:00
},
"extend": {
"prefix": "extend",
"description": "Insert an <extend> tag.",
2018-11-12 20:50:52 +00:00
"body": ["<extend src=\"$1\">", " $2", "</extend>"]
2018-11-12 18:35:17 +00:00
},
"for-each": {
"prefix": "for-each",
"description": "Insert a <for-each> tag.",
2018-11-12 20:50:52 +00:00
"body": ["<${1:div} for-each=$2 as=\"$3\">", " $4", "</$1>"]
2018-11-12 18:35:17 +00:00
},
"include": {
"prefix": "include",
"description": "Insert an <include /> tag.",
"body": ["<include src=\"$1\"/>"]
},
"switch": {
"prefix": "switch",
"description": "Insert a <switch> tag.",
"body": [
"<switch value=$1>",
" <case value=$2>",
" $3",
" </case>",
" <default>",
" $4",
" </default>",
2018-11-12 20:50:52 +00:00
"</switch>"
2018-11-12 18:35:17 +00:00
]
}
}
}