The user should be able to specify partials per render call (I know it because I implemented that feature in consolidatehttps://github.com/tj/consolidate.js/pull/51). Prior 1.0.0 that was working without any change required to this module.
Now, I'm not sure what the author's idea was with defining global partials for the render, but with this fix the partials from views.options and those passed in render.options are merged. So that fixes existing clients using this combination of modules.
While on that, I don't see the point of using the utils-merge module, you can just var extend = require('util')._extend instead (for flat merge).
The user should be able to specify
partials
perrender
call (I know it because I implemented that feature inconsolidate
https://github.com/tj/consolidate.js/pull/51). Prior 1.0.0 that was working without any change required to this module.Related commit: https://github.com/tj/co-views/commit/9cdf9fd29d599bf10f5deda0a4806cb2bcf12a33 And PR: https://github.com/tj/co-views/pull/21
Now, I'm not sure what the author's idea was with defining global
partials
for the render, but with this fix the partials fromviews.options
and those passed inrender.options
are merged. So that fixes existing clients using this combination of modules.While on that, I don't see the point of using the
utils-merge
module, you can justvar extend = require('util')._extend
instead (for flat merge).That's implementation detail, check out the PR above.