This commit is contained in:
@@ -10,6 +10,13 @@ function ayRegisterHelpers() {
|
||||
Handlebars.registerHelper("ayJSON", function (obj) {
|
||||
return JSON.stringify(obj, null, 3);
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("link", function(text, url) {
|
||||
var url = Handlebars.escapeExpression(url),
|
||||
text = Handlebars.escapeExpression(text)
|
||||
|
||||
return new Handlebars.SafeString("<a href='" + url + "'>" + text +"</a>");
|
||||
});
|
||||
}
|
||||
|
||||
function ayPreRender(theReportData) {
|
||||
|
||||
Reference in New Issue
Block a user