Category Archives: Handlebars

Comparison block helper for handlebars templates

I really like the handlebars template system, it’s straight to the point, efficient, and the added logic layer to mustache makes it practical for most scenarios. One limitation i’ve found was that if block helpers can’t actually evaluate an expression, it only tests if the passed value is already true or false, there’s no evaluation of it. so this: {{#if unicorns == ponies }} That’s amazing, unicorns are actually undercover ponies {{/if}} doesn’t work, bummer.…

Read More