Closed wsmPanda closed 7 years ago
The "trick" of this PR seems like a right fix, for consolidate.js does a wrong way in partials cache(and I don't think it'll be fixed easily), it modified options.partials[]
from file path to the content of the file.
Then, I prefer to accept this PR but the code style should be in the right way. #81 #77
edd8e6f27cafb317418c0fd8619b69e6390bfe28
copy
options.partials
tostate.partials
to avoid partials object be modified ,which make hbs partials render error after code
var state = Object.assign(locals, options, ctx.state || {})