I want to use multiple if else condition, Can anyone suggest
{{#if condition}}
<!-- stuff -->
{{else}}
<!-- other stuff-->
{{/if}}
{{#if condition}}
<!-- stuff -->
{{else}}
<!-- other stuff-->
{{/if}}
??
2 Likes
@jhuenges I never knew you could do that in spacebars! Thanks for finding that.
The Blaze docs are a bit behind if that was never added
1 Like
just to make sure you are checking the correct blaze doc, here it is:
http://blazejs.org/guide/spacebars.html#Block-Helpers
I was interested in the {{elseif}}
syntax addition (linked to by @jhuenges) - which is not in the Spacebars documentation.
sorry, got it made. seems that this has been forgotten