1.0.0 • Published 2 years ago
parcel-transform-hogan v1.0.0
parcel-transform-hogan
This Parcel 2 plugin supports transforming mustache templates into ES6 at build time.
Sample
import myTemplate from "./template.mustache"
const html = myTemplate.render({ name: "fred"});
<div>Hello {name}</div>
Configuration
Add the following to your .parcelrc
{
"transformers": {
"*.mustache": ["parcel-transformer-hogan"]
}
}
1.0.0
2 years ago