标签: handlebars.js
Handlebars.registerHelper('getDiscountPrice', function(prodValue, options) { if(prodValue.price != prodValue.SELLINGPRICE) { return options.fn(this); } else { return options.inverse(this); } });