0.1.0 • Published 7 years ago

sourcejs-pug v0.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

Pug support for SourceJS

SourceJS middleware to support Pug markup language (*.pug) instead of native *.src.

Works with SourceJS v.0.5.6+.

Install

To install, run npm in sourcejs/user folder:

npm i sourcejs-pug -S

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

Usage

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.