src/js/utils.js
branchpopcorn-port
changeset 840 ac66e2240e1e
parent 837 353a78021ebc
child 852 eefb64f74a3f
equal deleted inserted replaced
839:4357aac4eb19 840:ac66e2240e1e
   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);