Parse templates to html loader for webpack
JavaScript
Switch branches/tags
Clone or download
Latest commit b8155d1 Dec 8, 2016
Permalink
Failed to load latest commit information.
.gitignore fix relative includes Jan 30, 2014
LICENSE Initial commit Jan 24, 2014
README.md detect engine Jan 24, 2014
index.js Add "raw" param Jul 21, 2014
package.json fix json Dec 8, 2016

README.md

template-html-loader

Parse templates to html loader for webpack. It parses any template language supported by consolidate.js, and returns the html.

You will still need to install the template engine. The script will try to detect the template engine by the file extension. You can overwrite this by setting the engine parameter.

loaders: [
  { test: /\.jade/, loader: "template-html-loader" },
  { test: /\.ejs/, loader: "template-html-loader" }
  { test: /\.mustache/, loader: "template-html-loader?engine=hogan" }
]

Available on NPM, template-html-loader.