lazy-blocks icon indicating copy to clipboard operation
lazy-blocks copied to clipboard

Conditionals on Handlebars

Open robsonsobral opened this issue 4 years ago • 4 comments

Can you consider updating Handlebars, please? The version in use doesn't allow else if.

Thank you!

robsonsobral avatar Oct 29 '20 20:10 robsonsobral

Hey.

if and else working with no problems https://lazyblocks.com/documentation/blocks-controls/checkbox-toggle/

nk-o avatar Nov 01 '20 12:11 nk-o

I should have explained better. I'm talking about else if.

{{#if }}
    
{{else if}}

{{else}} 

{{/if}}

I'm sorry.

robsonsobral avatar Nov 01 '20 15:11 robsonsobral

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.

nk-o avatar Nov 04 '20 19:11 nk-o

I'm not a PHP dev but looks like this might be a drop in replacement for this issue? https://github.com/zordius/lightncandy

vinayraghu avatar Mar 29 '21 03:03 vinayraghu