Skip to content

sourcejs/sourcejs-jade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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