-
Notifications
You must be signed in to change notification settings - Fork 157
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
Mention generic options config in readme #179
Comments
@mslourens Bump. Did doing so work for you? |
I'm thinking is the following what we need? require 'handlebars_assets'
HandlebarsAssets::Config.options = {
allowProtoMethodsByDefault: true,
allowedProtoMethods: true
} |
yes, that's what I meant. |
I added that to
but previously had
|
Is there an update regarding this?
But this doesn't seem to be passed down correctly towards the underlying handlebars internally. Do I need to use the |
Those are runtime of the template parameters; so you need to call it on your namespace'd object: window.HandlebarsTemplates["trim_test"](
{ input: { trim: "foobar" } },
{ allowedProtoMethods: { 'trim': true } }
) so with the template "trim_test" of I am about to push a new release that might help a bit, I am trying to make the invalidation of files work correctly first though 😓 |
Thanks, I appreciate the input on this. |
I was looking for a way to set runtime options for handlebars, and came across the changelog for version 0.6.5, where this was mentioned, but in the readme it was not mentioned at all. It would be a good idea to mention it somewhere, so this option can be used. This is the way to set runtime options like allowProtoPropertiesByDefault, right?
The text was updated successfully, but these errors were encountered: