[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/Chhabi/JavaScriptButtons/master/src/util/template.js [Back]  [Original]

'use strict';


var ejs = require('ejs');


module.exports = function template(str, data) {
    return ejs.render(str, data);
};


// Workaround for IE 8's lack of support
if (!String.prototype.trim) {
    String.prototype.trim = function () {
        return this.replace(/^\s+|\s+$/g, '');
    };
}

Web Proxy Viewer  |  New URL  |  Original Page