SourceJS middleware to support Pug markup language (*.pug
) instead of native *.src
.
Works with SourceJS v.0.5.6+.
To install, run npm in sourcejs/user
folder:
npm i sourcejs-pug -S
Then restart your SourceJS application, middleware will be loaded automatically.
After installing middleware, instead of index.src
pages, you can index.pug
files with Pug markup.
index.pug
h1 Pug - node template engine
#container.col
p.
Pug is a terse and simple
templating language with a
strong focus on performance
and powerful features.