This extension provides support for handlebars language.
Handlebars is a simple templating language.
It uses a template and an input object to generate HTML or other text formats. Handlebars templates look like regular text with embedded Handlebars expressions.- Introduction From Official Website Of Handlebars
This extension only works with *.hbs
and *.handlebars
files
- Snippets
- Syntax Highlighting (Forked From Github Repository)
- Open Visual studio Code Marketplace
- Search For "Handlebars" which is created by Adarsh Gourab Mahalik
- Click "Install" button
- Your Extension is installed now!
Trigger / Prefix | Method |
---|---|
var |
creates like {{name}} |
if |
creates if block |
else-if |
creates else if condition |
else |
writes else condition |
each |
creates each block |
par |
creates partial |
unless |
creates unless block |
with |
creates with block |
log |
creates {{log foo}} |
lookup |
writes {{lookup foo bar}} |
block |
creates a block helper |
This product is made under MIT license