Node.js engine using the ultra fast doT templating with support for layouts, partials and friendly for front-end web libraries (Angular, Ember, Backbone...)
When using partials in Zetzer you can pass data to the partial like so:
{{= partial(path, {varA: va;, varB: val ...} )
Which are then accessed in the partial like so:
{{= model.varA }}
Q: How can I achieve the same using express-dot-engine ?
SOLVED: express-dot-engine works in exactly the same way as described above. A couple of my own errors had led me to the false conclusion that express-dot did not support partial with data.
Not really an issue, more usability issue in that 'how can I pass data to a partial?'
In the past I have used Zetzer https://github.com/brainshave/zetzer which is also based on dot.
When using partials in Zetzer you can pass data to the partial like so:
{{= partial(path, {varA: va;, varB: val ...} )
Which are then accessed in the partial like so:
{{= model.varA }}
Q: How can I achieve the same using express-dot-engine ?
SOLVED: express-dot-engine works in exactly the same way as described above. A couple of my own errors had led me to the false conclusion that express-dot did not support partial with data.
Yet another 'numpty' moment ! :)