'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, ''); }; }