-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot overwrite pre-existing key/value in preRender
#9
Comments
@dtothefp Thanks for the issue! If you're reporting a bug, please be sure to include:
|
@jonschlinkert when I do that looks like // create the context to pass to templates
//var ctx = utils.merge({}, app.cache.data, locals, file.data);
//ctx.engine = engine || ctx.engine;
// render the file
app.render(file, locals, function(err, res) { //...
|
you probably need to do something like |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Demo repo here: https://github.com/dtothefp/assemble-yfm-nunj
"version": "0.8.0"
Essentially, overwritting pre-existing data on the
file.data
context does not seem to work inpreRender
hookif
app.cache.data.title
orfile.data.title
exists then the above doesn't work. I solve this by doing merge inonLoad
or by making a stream plugin
The text was updated successfully, but these errors were encountered: