Closed vitaliiznak closed 9 years ago
In version 1.0.6, varname should include partial too.
...
varname: 'layout, partial, locals, model',
Let me know if that works.
it works, thanks, sorry for delay
yeap, it works but only on the same order i mean varname: 'layout, partial, locals, model', - works varname: 'layout, locals, model, partial', - does not work
Yes, order is important :)
I'll update the doc soon. Thanks!
When I changed to use {{ }} instead of [[ ]] the partial dont work anymore // doT settings
engine.settings.dot = { evaluate: /[[([\s\S]+?)]]/g, interpolate: /[[=([\s\S]+?)]]/g, encode: /[[!([\s\S]+?)]]/g, use: /[[#([\s\S]+?)]]/g, define: /[[##\s([\w.$]+)\s(:|=)([\s\S]+?)#]]/g, conditional: /[[\?(\?)?\s([\s\S]?)\s]]/g, iterate: /[[~\s(?:]]|([\s\S]+?)\s:\s([\w$]+)\s(?::\s([\w$]+))?\s*]])/g, varname: 'layout, model', strip: false, append: true, selfcontained: false, };
then {{= partial('path/test')}} - partials is not defined