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

Version Path
jammit-0.3.3 lib/jammit/jst.js
jammit-0.3.2 lib/jammit/jst.js
jammit-0.3.1 lib/jammit/jst.js
jammit-0.3.0 lib/jammit/jst.js
jammit-0.2.9 lib/jammit/jst.js
jammit-0.2.8 lib/jammit/jst.js
jammit-0.2.7 lib/jammit/jst.js
jammit-0.2.6 lib/jammit/jst.js
jammit-0.2.5 lib/jammit/jst.js
jammit-0.2.4 lib/jammit/jst.js
jammit-0.2.3 lib/jammit/jst.js
jammit-0.2.2 lib/jammit/jst.js
jammit-0.2.1 lib/jammit/jst.js
jammit-0.2.0 lib/jammit/jst.js
jammit-0.1.3 lib/jammit/jst.js
jammit-0.1.2 lib/jammit/jst.js
jammit-0.1.1 lib/jammit/jst.js