visionmedia/jade — pull request #754 by niftylettuce (2012-08-24 17:11:18+00:00)
Title: Added partials client-side template support with { cst: true }

Okay, this commit and pull request is much cleaner.

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: