visionmedia/ejs — pull request #116 by mcwhittemore (2013-05-24 15:10:05+00:00)
Title: Adding Blocks

Adding a blocks option to the option screen which render templates into local variables so to allow for a layout-esq functionality. I have added examples in example/layout.js for both the render and renderFile functions.

This functionality also moves over to express and here is an example route.

```
app.get('/', function(req, res) {
var opt = {
locals: {
page_home:"page-home"
},
blocks: {
content:{
filename:"views/home.ejs",
locals:{}
}
}
};
res.render('layouts/single', opt);
});
```