maccman/hem — pull request #11 by mikepb (2011-11-11 02:49:05+00:00)
Title: Add Jade template support

Support [Jade](http://jade-lang.com/) templates. Requires adding `jade` module to `package.json`, `jade/runtime` dependency to `slug.json`, and `window.jade = require 'jade/runtime'` to `setup.coffee`.

Example `package.json`:

```js
{
"name": "app",
"version": "0.0.1",
"dependencies": {
"es5-shimify": "~0.0.1",
"hem": "~0.1.6",
"jade": "~0.17.0",
"jqueryify": "~0.0.1",
"json2ify": "~0.0.1",
"serveup": "~0.0.2",
"spine": "~1.0.5"
}
}
```

Example `slug.json`:

```js
{
"dependencies": [
"es5-shimify",
"jade/runtime",
"jqueryify",
"json2ify",
"spine",
"spine/lib/ajax",
"spine/lib/local",
"spine/lib/manager",
"spine/lib/route",
"spine/lib/tmpl"
],
"libs": []
}
```

Example `setup.coffee`:

```coffeescript
window.jade = require 'jade/runtime'

require 'json2ify'
require 'es5-shimify'
require 'jqueryify'

require 'spine'
require 'spine/lib/local'
require 'spine/lib/ajax'
require 'spine/lib/manager'
require 'spine/lib/route'
require 'spine/lib/tmpl'
```