prejadeify

0.0.2 • Public • Published

A Browserify Transform for Compile-time Jade

Prejadeify lets you use Jade templates with Browserify without the Jade runtime.

Features

  • No Jade runtime
  • Returns plain html
  • Prefix urls with CDN or other path (must use staticUrl() in code)

Install

npm install prejadeify

Usage

var template = require('./template.jade');
document.getElementById('something').innerHTML = template;

Setup

For Browserify bundle:

bundler.transform(prejadeify);

With url prefix option:

bundler.transform(prejadeify, {prefix: config.cdnUrl});

With other Jade locals (staticUrl can be overwritten here):

bundler.transform(prejadeify, {prefix: config.cdnUrl, ...jadeLocals});

For command line Browserify (untested):

browserify -t prejadeify app.js -o bundle.js

/prejadeify/

    Package Sidebar

    Install

    npm i prejadeify

    Weekly Downloads

    1

    Version

    0.0.2

    License

    WTFPL

    Last publish

    Collaborators

    • aaronz8