Jade support for NodeJS
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
core/middleware
.gitignore
LICENSE
README.md
package-lock.json
package.json

README.md

Jade support for SourceJS

SourceJS middleware to support Jade markup language (*.jade) instead of native *.src.

Works with SourceJS v.0.5.6+.

Install

To install, run npm in sourcejs/user folder:

npm install sourcejs-jade --save

Then restart your SourceJS application, middleware will be loaded automatically.

Usage

After installing middleware, instead of index.src pages, you can index.jade files with Jade markup.

index.jade

h1 Jade - node template engine

#container.col
    p.
        Jade is a terse and simple
        templating language with a
        strong focus on performance
        and powerful features.

Examples

Jade Spec page example - https://sourcejs.com/specs/example-specs-showcase/jade (source).