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
Here's some server side JS using version 1.0.rc.1:
>varHandlebars=require('handlebars')undefined>Handlebars.VERSION'1.0.rc.1'>Handlebars.registerHelper('is_menu_item',function(x){console.log('is_menu_item_helper was run');returntrue;});undefined>Handlebars.compile("{{#if is_menu_item}} hello {{/if}}")({});''>Handlebars.registerHelper('is_menu_item',function(x){console.log('is_menu_item_helper was run');return'true';});undefined>Handlebars.compile("{{#if is_menu_item}} hello {{/if}}")({});''
Here's some client side JS using version 1.0.beta.6:
>Handlebars.VERSION"1.0.beta.6">Handlebars.registerHelper('is_menu_item',function(x){console.log('is_menu_item_helper was run');returntrue;});undefined>Handlebars.compile("{{#if is_menu_item}} hello {{/if}}")({});is_menu_item_helperwasrun" hello "
Which behavior is correct? I saw issue #289 which seems related, but I was relying upon the ability to use {{#if my_helper}} and have my_helper execute.
The text was updated successfully, but these errors were encountered:
Here's some server side JS using version
1.0.rc.1
:Here's some client side JS using version
1.0.beta.6
:Which behavior is correct? I saw issue #289 which seems related, but I was relying upon the ability to use
{{#if my_helper}}
and havemy_helper
execute.The text was updated successfully, but these errors were encountered: