Sha256: 5cb31e39583b2d54f7b68a7070a56292fe5d827e12d9a55b1ec429b1afd5f8ff
Contents?: true
Size: 372 Bytes
Versions: 17
Compression:
Stored size: 372 Bytes
Contents
var template = function(str){var fn = new Function('obj', 'var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push(\''+str.replace(/[\r\t\n]/g, " ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g, "$1\r").replace(/\t=(.*?)%>/g, "',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"); return fn;};
Version data entries
17 entries across 17 versions & 1 rubygems