1. jade-html-loader
jade to html loader module for webpack
jade-html-loader
Package: jade-html-loader
Created by: bline
Last modified: Sun, 19 Jun 2022 03:35:00 GMT
Version: 0.0.3
Downloads: 340
Repository: https://github.com/bline/jade-html-loader

Install

npm install jade-html-loader
yarn add jade-html-loader

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)

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code