Sha256: 05e7d0f6fc467f5db3d2f1c38a89e4990c1132ab2d486a42ce5b9608425f0601
Contents?: true
Size: 382 Bytes
Versions: 2
Compression:
Stored size: 382 Bytes
Contents
// Here is our Backbone model! $(function() { do_test(); }); function do_test() { echo("<h3>Rendering from template:</h3>"); echo(JST['hello']({name: "Julie Kitzinger", age: "33"})); echo("<h3>Success!</h3>"); } // Helper functions function echo(html) { $("#messages").append(html); }; function onerror() { echo("<p class='error'>Oops... an error occured.</p>"); };
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
sinatra-backbone-2-0.1.1 | examples/jstpages/public/app.js |
sinatra-backbone-0.1.1 | examples/jstpages/public/app.js |