lazy-blocks
lazy-blocks copied to clipboard
Conditionals on Handlebars
Can you consider updating Handlebars, please? The version in use doesn't allow else if.
Thank you!
Hey.
if and else working with no problems https://lazyblocks.com/documentation/blocks-controls/checkbox-toggle/
I should have explained better. I'm talking about else if.
{{#if }}
{{else if}}
{{else}}
{{/if}}
I'm sorry.
Understand now. We use the PHP version of Handlebars (https://github.com/XaminProject/handlebars.php) and looks like this if else helper is not working correctly. Maybe someone could help with fixing it.
I'm not a PHP dev but looks like this might be a drop in replacement for this issue? https://github.com/zordius/lightncandy