visionmedia/jade — pull request #753 by niftylettuce (2012-08-24 16:55:54+00:00)
Title: Support for displaying client side templates on the server side!

FINALLY! :feelsgood:

Here is an example of what this allows you to do!

# some-partial.jade
```jade
each some in someVars
div= some.name
```

Then `main-view.jade` would get called from something like:

```js
var someVars = [ { name: 'TJ' }, { name: 'Aaron'} ]
res.render('main-view', {someVars: someVars})
```

# main-view.jade

```jade
script#my-template(type='text/jade')!= partial('some-partial', { cst: true })
!= partial('some-partial', someVars)
```

Should output:

```html

TJ

Aaron

```

:feelsgood: