You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the following command: mustache -e -t test-template.mustache -d test-data.yml -o test.out
I would expect all 3 of the tests to be treated as false.
test-template.mustache:
Begin Test1
{{#test1}}
Item is true
{{/test1}}
{{^test1}}
Item is false
{{/test1}}
value: {{test1}}
After Test1
Begin Test2
{{#test2}}
Item is true
{{/test2}}
{{^test2}}
Item is false
{{/test2}}
value: {{test2}}
After Test2
Begin Test3
{{#test3}}
Item is true
{{/test3}}
{{^test3}}
Item is false
{{/test3}}
value: {{test3}}
After Test3
test-data.yml:
test1: no
test2: false
test3:
output file (test.out):
Begin Test1
Item is true
value: no
After Test1
Begin Test2
Item is true
value: false
After Test2
Begin Test3
Item is false
value:
After Test3
The text was updated successfully, but these errors were encountered:
Parsing of
false
values doesn't seem to be working correctly per: https://mustache.github.io/mustache.5.htmlI am using:
From the remi repo in centos7
Using the following command:
mustache -e -t test-template.mustache -d test-data.yml -o test.out
I would expect all 3 of the tests to be treated as false.
test-template.mustache:
test-data.yml:
output file (test.out):
The text was updated successfully, but these errors were encountered: