Sha256: 7d23f78289b1c17e34f7c70ef7c0e6fe0fcf80961494db099fd072c9c644e2ed

Contents?: true

Size: 363 Bytes

Versions: 26

Compression:

Stored size: 363 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, " ").replace(/'(?=[^%]*%>)/g,"\t").split("'").join("\\'").split("\t").join("'").replace(/<%=(.+?)%>/g,"',$1,'").split("<%").join("');").split("%>").join("p.push('")+"');}return p.join('');"); return fn;};

Version data entries

26 entries across 26 versions & 8 rubygems

Version Path
jammit-mitio-0.6.1 lib/jammit/jst.js
altly-jammit-0.6.0 lib/jammit/jst.js
moxiesoft-jammit-0.5.4.1 lib/jammit/jst.js
moxiesoft-jammit-0.5.4 lib/jammit/jst.js
ghazel-jammit-0.6.0.2 lib/jammit/jst.js
ghazel-jammit-0.6.0.1 lib/jammit/jst.js
secobarbital-jammit-0.6.0.1 lib/jammit/jst.js
jammit-0.6.0 lib/jammit/jst.js
jammit-0.5.4 lib/jammit/jst.js
jammit-0.5.3 lib/jammit/jst.js
jammit-0.5.1 lib/jammit/jst.js
jammit-0.5.0 lib/jammit/jst.js
agibralter-jammit-0.5.0 lib/jammit/jst.js
secobarbital-jammit-0.5.0.1 lib/jammit/jst.js
secobarbital-jammit-0.5.0 lib/jammit/jst.js
jammit-core-0.1.1 lib/jammit-core/jst.js
jammit-core-0.1.0 lib/jammit-core/jst.js
ghazel-jammit-0.4.4.3 lib/jammit/jst.js
ghazel-jammit-0.4.4.2 lib/jammit/jst.js
ghazel-jammit-0.4.4.1 lib/jammit/jst.js