2.1.0 • Published 10 years ago

simple-jadeify v2.1.0

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

A Simple Browserify Middleware for Jade Templates

Simple Jadeify lets you use Jade with browserify in the simplest way possible:

var template = require("./template.jade");

document.getElementById("my-thing").innerHTML = template({ localVar: "value", anotherOne: "another value" });

Setup

Dead simple. When creating your browserify bundle, just add this line:

bundle.use(require("simple-jadeify"));

This will add the Jade runtime to your bundle, so that your templates work without needing to bundle Jade itself. And it will register the .jade extension with Browserify such that requireing any Jade files will give you back a template function.

2.1.0

10 years ago

2.0.1

11 years ago

2.0.0

11 years ago

1.1.0

11 years ago

1.0.0

12 years ago