Jade plugin for Polvo
npm install polvo-jade
|6||downloads in the last week|
|28||downloads in the last month|
|Version||0.2.0 last updated 5 months ago|
|Keywords||polvo, plugin, build, system, tool, jade|
|Dependencies||jade, source-map-support, regexp-clone|
With this plugin, Polvo can handle Jade source files.
You won't need to install it since it comes built in in Polvo.
Just put your
.jade files in your
input dirs and it will be ready for use.
The same resolution algorithm presented in NodeJS will be used.
template = require './your/jade/template' dom = template() console.log dom # append it to your document, i.e: # $('body').append dom
There's a built in support for partials in Jade, polvo will handle them in a particular conventioned way.
Every file starting with
_ won't be compiled alone. Instead, if some other
file that doesn't start with
_ imports or extends it, it will be compiled
The import tag follows the Jade default syntax.
To include a partial in your
- Name your patial accordingly so it starts with
- Calls it from any of your
jadefiles by using the
include ./_partial-name-here extends ./_partial-name-here
Partials are referenced relatively.