-
Notifications
You must be signed in to change notification settings - Fork 429
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
render is undefined #222
Comments
@rouberg Lambdas in Hogan.js is broken. Please try that. {
"wrapped": function() {
return function(text) {
return Hogan.compile(text).render(this);
}
}
} |
See #199 |
The 'render' argument isn't in the mustache spec. |
You're right, the text only states that the lambda should receive the unrendered chunk of text. |
Six years later, still not sure what the right answer is here, but this should get resolved definitively. |
code fragment below is copy from mustache , but I can't get argument render in Lambdas. The console told me argument render is undefined. Is there something that i misunderstand?
Template:
{{#wrapped}}
{{name}} is awesome.
{{/wrapped}}
Hash:
{
"name": "Willy",
"wrapped": function() {
return function(text, render) { //actually param render cannot get a argument
return "" + render(text) + ""
}
}
}
The text was updated successfully, but these errors were encountered: