-
Notifications
You must be signed in to change notification settings - Fork 535
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
Template expressions and object literals #645
Comments
Hi! Originally, the
Maybe I should have gone with double-braces, but at least you have a workaround. |
|
I found a strange quirk: // test.js
module.exports = {
fnA: function (opt) {
return "-each this.geojson=fnB()";
},
fnB: function () {
return null;
}
}
... works as expected
... results in an error I think this was why I avoided the template literal in the first place. But now I need (read "want" 😁 ) it to provide options as object and not as positional function parameters. please tell me if I'm being a pain... |
I'm facing a problem with this commands:
The curly braces of the options-property are interpreted as template identifiers and result in an error.
Maybe the template identifier should be changed to double curly braces in the parseTemplateParts function. It is not uncommon to use
{{template}}
but it would break existing code.related: #608
The text was updated successfully, but these errors were encountered: