HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.0.30
System: Linux multiplicar 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64
User: root (0)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /var/www/html/sudameris.sumar.com.py/lib/yui/src/handlebars/js/handlebars.js
// Handlebars only exists in the global namespace and we do not want to
// Clone the entire thing.

// It should be reasonably safe within Moodle to add some core
// functionality to Handlebars at this level.
Y.Handlebars.registerHelper('get_string', function() {
    var args = new Y.Array(arguments);

    // Pop off the Handlebars object at the end.
    args.pop();

    // Add the Handlebars hashtable to support get_string arguments.
    args.push(arguments[arguments.length - 1].hash);

    // Perform the get_string.
    return M.util.get_string.apply(this, args);
});

Y.Handlebars.registerHelper('image_url', function() {
    var args = new Y.Array(arguments);

    // Pop off the Handlebars object at the end.
    args.pop();

    // Perform the get_string.
    return M.util.image_url.apply(this, args);
});