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
If this is not going to be addressed anytime soon, is there another way to achieve conditionals without nesting data? I want to fill a template with data from a CSV file, which is necessarily flat, so I can't just use the more reasonable {:foo {:value "bar"}} and {{#foo}} {{value}} {{/foo}}.
The text was updated successfully, but these errors were encountered:
You can (ab)use sections and {{.}} to conditionally include passages like this in mustache:
Template: {{#foo}}quox: {{.}}{{/foo}}
Data (JSON): {"foo": "bar"}
Output: quox: bar
This does not work in clostache:
If this is not going to be addressed anytime soon, is there another way to achieve conditionals without nesting data? I want to fill a template with data from a CSV file, which is necessarily flat, so I can't just use the more reasonable {:foo {:value "bar"}} and {{#foo}} {{value}} {{/foo}}.
The text was updated successfully, but these errors were encountered: