PostHTML snippets for VS Code.
$ ext install posthtml
Or, F1
→ Install Extension
→ Search for posthtml
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="">
<case n="">
<default>
<scope with="">
<raw>
,<verbatim>
For posthtml-include:
<include src="" locals="">
For posthtml-modules:
<module href="" locals="">
For other plugins:
<component src="">
(modules in maizzle.js)<spaceless>
(posthtml-spaceless)<lorem size="">
(posthtml-lorem)<markdown>
,<md>
(posthtml-md, posthtml-markdown, posthtml-md2html)
Start writing a snippet's prefix
(tag name) and then press Tab ↹ to expand the snippet.
MIT © Cosmin Popovici