diet-jade
Jade template engine plugin for diet based on Jade. Support for sending data to view through $.data.PARAM
and displayed via #{PARAM}
.
Learn about Jade:
Learn how to use it at the engine's website:
- Website: http://jade-lang.com/
Install
npm install diet-jade
Example Usage
index.js
// Require Diet servervar server = // Require diet-jade pluginvar jade = path: apppath + '/static/jade/' // Instantiate servervar app = // Set server listening portapp // Assign jade plugin to the headerapp // Create a routeapp app
~/.../static/jade/index.jade
p Received message: #{message}
File Rendering
$ // will serve yourConfiguredDirectory/yourFile.jade $ //wil serve yourConfiguredDirectory/yourFile.jade
License
Please refer to The License.