parcel-transform-hogan
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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"]
  }
}

Package Sidebar

Install

npm i parcel-transform-hogan

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

13.7 kB

Total Files

6

Last publish

Collaborators

  • emmettl