jade-html-loader

0.0.3 • Public • Published

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()):

  • self - set the context

  • pretty - boolean, output pretty html or not

  • locals - set locals

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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    52
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    52
  • 0.0.2
    98
  • 0.0.1
    0

Package Sidebar

Install

npm i jade-html-loader

Weekly Downloads

150

Version

0.0.3

License

none

Last publish

Collaborators

  • markmarijnissen
  • jvmnpm
  • bline