We had a few occasions where we needed something like count > 0 or other simple logic, that should live inside the template, but its impossible… until now 🙂
Code
{{#ifEval "this.getPath('content.click_count') >= 0"}} The content has been clicked {{content.click_count}} times! {{/ifEval}}
Usage
Handlebars.registerHelper('ifEval', function(code, options) { if(eval(code)){ return options.fn(this); } });