// Here is our Backbone model! $(function() { do_test(); }); function do_test() { echo("

Rendering from template:

"); echo(JST['hello']({name: "Julie Kitzinger", age: "33"})); echo("

Success!

"); } // Helper functions function echo(html) { $("#messages").append(html); }; function onerror() { echo("

Oops... an error occured.

"); };