Sha256: d6e51348d7fdf3b9f755ffeb4f9cc730025fb2317fd65070b6f05392a74926e2
Contents?: true
Size: 283 Bytes
Versions: 1
Compression:
Stored size: 283 Bytes
Contents
exports.compileFormat = function(code, spade, filename){ var name = filename.replace(/^[^\/]+\/~?/, '').replace(/\.handlebars$/, ''); var escaped = code.replace(/"/g,'\\"').replace(/\n/g, '\\n'); return "SC.TEMPLATES[\""+name+"\"] = SC.Handlebars.compile(\""+escaped+"\")"; };
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spade-0.0.1 | packages/sproutcore-handlebars/lib/handlebars.js |