Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.78 KB

README.md

File metadata and controls

65 lines (41 loc) · 1.78 KB

PostHTML

PostHTML snippets for VS Code.

Snippets preview animation

Install

$ ext install posthtml

Or, F1Install 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="">
    • <case n="">
    • <default>
  • <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