PostHTML
PostHTML snippets for VS Code.
Install
$ ext install posthtml
Or, F1 → Install Extension → Search for posthtml
Snippets
The following snippets are included:
For posthtml-extends:
<extends src="">
<layout src=""> (extends alias)
<block name="">
<block name="" type="">
For posthtml-expressions:
<if condition="">
<elseif condition="">
<else>
<each loop="{value}, {index} in {array}">
<each loop="{value}, {key} in {object}">
<for loop="{value}, {index} in {array}">
<for loop="{value}, {key} in {object}">
<switch expression="">
<scope with="">
<raw> , <verbatim>
For posthtml-include:
<include src="" locals="">
For posthtml-modules:
<module href="" locals="">
For other plugins:
Usage
Start writing a snippet's prefix (tag name) and then press Tab ↹ to expand the snippet.
License
MIT © Cosmin Popovici
| |