We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am passing an object into my template like such
var obj = { value: 'a', doStuff: function(param1, param2) { ...}};
Twig.render(myTemplate.twig, { data: obj });
{{ data.doStuff('a', 'b') }}
when doing this, the compiled template ends up calling doStuff() with four params like this: [0, 'a', 1, 'b']
Causing the function to fail as the parameters are not as expected.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am passing an object into my template like such
var obj = { value: 'a', doStuff: function(param1, param2) { ...}};
Twig.render(myTemplate.twig, {
data: obj
});
{{ data.doStuff('a', 'b') }}
when doing this, the compiled template ends up calling doStuff() with four params like this: [0, 'a', 1, 'b']
Causing the function to fail as the parameters are not as expected.
The text was updated successfully, but these errors were encountered: