SourceJS middleware to support Jade markup language (*.jade
) instead of native *.src
.
Works with SourceJS v.0.5.6+.
To install, run npm in sourcejs/user
folder:
npm install sourcejs-jade --save
Then restart your SourceJS application, middleware will be loaded automatically.
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.
Jade Spec page example - https://sourcejs.com/specs/example-specs-showcase/jade (source).