Parcel Transformer plugin for Handlebars
Installation
npm i -D parcel-transformer-handlebars
Configuration
{
"extends": [
"@parcel/config-default"
],
"transformers": {
"*.hbs": [
"parcel-transformer-handlebars"
]
}
}
Customization
Customization is possible by using a .hbsrc
, .hbsrc.js
or hbs.config.js
file.
For example, you can set local variables using .hbsrc
.
{
"firstname": "Paulo",
"lastname": "Alves"
}
For more information, see HBS guide