documentcloud/underscore — pull request #498 by braddunbar (2012-03-02 14:22:43+00:00)
Title: _.template allows a custom buffer.

By allowing a custom buffer in `_.template`, we can accomplish things that are not possible with the current implementation. For instance:

```javascript
_.template('<% wrap(function(){ %>content<% }); %>').call({
__p: [],
wrap: function(f) {
this.__p.push('

');
f.call(this);
this.__p.push('

');
}
});
```

will produce `

content

`.