-
Notifications
You must be signed in to change notification settings - Fork 70
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
@eq: problem with value=false #85
Comments
Any helper parameter that is not surrounded by quotes will be considered a reference. Consider this example: JSON:
and template
Dust will grab value of In order for your example to work you'll need to pass in
In this case values of Alternatively you could do |
Unrelated to the problem, but you can write this like:
|
I have data set like that:
[{"val": false}, {"val": true}]
And template:
{#.}
{@eq key=val value=false}
FALSE
{:else}
NULL
{/eq}
{/.}
Value=false is compiled to: "value": ctx.get(["false"], false), not to false. I think is it inncorect. For other base types like integers we get right: "value": 1.
The text was updated successfully, but these errors were encountered: