Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 908 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 908 Bytes

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).