I am trying to write a conditional if statement helper for Handlebars.js. Essentially, I want to put an \"active\" class on a link if it is the Apply Now page.
Apply Now
NOTE: block(this) in the helper will not work anymore. Instead, use block.fn(this)
e.g.
Handlebars.registerHelper('isApplyNow', function(block) { if (this.title === "Apply Now") return block.fn(this); else return block.inverse(this); });