Skip to content
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

Nested conditionals #73

Open
rrodseth opened this issue Feb 6, 2017 · 0 comments
Open

Nested conditionals #73

rrodseth opened this issue Feb 6, 2017 · 0 comments

Comments

@rrodseth
Copy link

rrodseth commented Feb 6, 2017

I appear to have run into a bug with nested conditionals - the inner one seemed to be ignored - and I noticed a comment ("resolve the bugs with nested conditionals") here:

http://tech.gilt.com/2013/08/29/handlebars-scala-a-handlebars-for-scala

Any plans to fix this, or is there a workaround?

Thanks. Here's my template:

Duration - {{#if durationData.durationDays}}{{#if durationData.pluralDays}}{{durationData.durationDays}} days {{else}}{{durationData.durationDays}} day {{/if}}{{/if}}{{#if durationData.durationHours}}{{#if durationData.pluralHours}}{{durationData.durationHours}} hours {{else}}{{durationData.durationHours}} hour {{/if}}{{/if}}{{#if durationData.durationMinutes}}{{#if durationData.pluralMinutes}}{{durationData.durationMinutes}} minutes{{else}}{{durationData.durationMinutes}} minute{{/if}}{{/if}}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant