equal
deleted
inserted
replaced
111 return zeroes + str; |
111 return zeroes + str; |
112 }; |
112 }; |
113 |
113 |
114 /* shortcut to have global variables in templates */ |
114 /* shortcut to have global variables in templates */ |
115 IriSP.templToHTML = function(template, values) { |
115 IriSP.templToHTML = function(template, values) { |
116 var params = IriSP.jQuery.extend( |
116 var params = IriSP.underscore.extend( |
117 { "defaults" : IriSP.default_templates_vars, |
117 { "defaults" : IriSP.default_templates_vars, |
118 "l10n" : IriSP.i18n.getMessages() |
118 "l10n" : IriSP.i18n.getMessages() |
119 }, |
119 }, |
120 values); |
120 values); |
121 return Mustache.to_html(template, params); |
121 return Mustache.to_html(template, params); |