airbnb/rendr — pull request #203 by smclelland (2013-11-30 21:39:26+00:00)
Title: Added templatePath and compiledTemplatesFile Server.options

Defaults to paths outlined in Rendr readme with Server.options overriding them. I've updated the tests

---

Everything is relative to entryPath and it also resolves paths.

```
{
entryPath: '/my_app/'
templatePath: '/app/views/'
compiledTemplates: '../tmp/compiled_templates.js'
}
```

In order for this to work, I had to pull out the hardcoded template path within rendr-handlebars:index.js:27

```
localExports.templatePatterns.push({pattern: /.+/, src: options.entryPath + 'app/templates/compiledTemplates'})
```

I have a fork of rendr-handlebars that makes that an option. I can send you a pull request of that as well.

The one thing that I'd like to see is a configuration of "__layout". My thinking here is that it should somehow be incorporated into App & Views. So you can say this App uses __layoutX, but these five views can override with __layoutG.