bline / jade-html-loader

webpack loader for jade to html
MIT License
30 stars 27 forks source link

jade html loader for webpack

Usage

var html = require("jade-html!./file.jade");
// => returns file.jade content as html

Allows you to get HTML back instead of a function reference. I found this useful for templates which render server side.

Possible options are (all passed to jade.compile()):

Don't forget to polyfill require if you want to use it in node. See enhanced-require documentation.

License

MIT (http://www.opensource.org/licenses/mit-license.php)