20 lines
441 B
JavaScript
20 lines
441 B
JavaScript
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;
|
|
}
|
|
}
|
|
|
|
|