[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/yui/src/handlebars/js/ -> handlebars.js (source)

   1  // Handlebars only exists in the global namespace and we do not want to
   2  // Clone the entire thing.
   3  
   4  // It should be reasonably safe within Moodle to add some core
   5  // functionality to Handlebars at this level.
   6  Y.Handlebars.registerHelper('get_string', function() {
   7      var args = new Y.Array(arguments);
   8  
   9      // Pop off the Handlebars object at the end.
  10      args.pop();
  11  
  12      // Perform the get_string.
  13      return M.util.get_string.apply(this, args);
  14  });
  15  
  16  Y.Handlebars.registerHelper('image_url', function() {
  17      var args = new Y.Array(arguments);
  18  
  19      // Pop off the Handlebars object at the end.
  20      args.pop();
  21  
  22      // Perform the get_string.
  23      return M.util.image_url.apply(this, args);
  24  });


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1