Package Exports
- most-web-jade
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (most-web-jade) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
most-web-jade
Most Web Framework Jade View Engine

A view engine for jade templates which are going to be used in web applications based on MOST Web Framework
Install
$ npm install most-web-jade
Usage
Register view engine by adding the following node in config/app.json engines collection:
"engines": [
...
{
"name": "Jade View Engine", "extension": "jade", "type": "most-web-jade"
}
...
]
}Create a new controller (app/controllers/example-controller.js):
var web = require("most-web"), util = require("util");
function ExampleController() {
ExampleController.super_.call(this);
}
util.inherits(ExampleController, web.controllers.HttpBaseController);
ExampleController.prototype.hello = function(callback) {
return callback(null, this.result({ name:"Thomas" }));
}Create a jade template:
h1 This is a Jade template
h2 Hello #{data.name}and place it in views folder:
app
+ views
+ example
hello.html.jadeand finally execute the action http://127.0.0.1:3000/example/hello.html