8lueberry / express-dot-engine

Node.js engine using the ultra fast doT templating with support for layouts, partials and friendly for front-end web libraries (Angular, Ember, Backbone...)
MIT License
43 stars 10 forks source link

Can I use compile time evaluations and includes with dot-engine? #14

Closed vitaliiznak closed 9 years ago

vitaliiznak commented 9 years ago

e.g [[# partial(../some_partial); ]]

Also: Can I Have access to app.locals within the view?

8lueberry commented 9 years ago

For partials, you can use

[[= partial('../some_partial') ]]

You also have access to the locals object

[[= locals.myLocalVar ]]