function ayRegisterHelpers() { Handlebars.registerHelper("aycaps", function (aString) { return aString.toUpperCase(); }); Handlebars.registerHelper("aymarkdown", function (astring) { return marked(astring, { breaks: true }); }); } function ayPreRender(theReportData) { if (typeof reportPreRender === "function") { return reportPreRender(theReportData); }else{ return theReportData; } }