var debug = mkws.debug_function; // local alias
-Handlebars.registerHelper('link', function(text, url) {
- text = Handlebars.Utils.escapeExpression(text);
- url = Handlebars.Utils.escapeExpression(url);
-
- var result = '<a href="' + url + '">' + text + '</a>';
+Handlebars.registerHelper('link', function(a) {
+ var result = "";
+ for (var i in a) {
+ if (i > 0) result += "<br/>";
+ var text = Handlebars.Utils.escapeExpression(a[i]);
+ result += '<a href="' + text + '">' + text + '</a>';
+ }
- return new Handlebars.SafeString(result);
+ return new Handlebars.SafeString(result);
});
+
{
/* default mkws config */
var config_default = {