[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 YUI.add('moodle-core-handlebars', function (Y, NAME) { 2 3 // Handlebars only exists in the global namespace and we do not want to 4 // Clone the entire thing. 5 6 // It should be reasonably safe within Moodle to add some core 7 // functionality to Handlebars at this level. 8 Y.Handlebars.registerHelper('get_string', function() { 9 var args = new Y.Array(arguments); 10 11 // Pop off the Handlebars object at the end. 12 args.pop(); 13 14 // Perform the get_string. 15 return M.util.get_string.apply(this, args); 16 }); 17 18 Y.Handlebars.registerHelper('image_url', function() { 19 var args = new Y.Array(arguments); 20 21 // Pop off the Handlebars object at the end. 22 args.pop(); 23 24 // Perform the get_string. 25 return M.util.image_url.apply(this, args); 26 }); 27 28 29 }, '@VERSION@');
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |