Models var Person = Backbone.Model.extend({ sayName: function(){ return this.get('name'); } }); var andy = new Person({ name: 'Andy' }); andy.sayName(); // => 'Andy'
my-view.js define(function(require){ var templateFn = require('hbs!path/to/tpl'); // View now has access to compiled template // function }); post-template.hbs
my-view.js define(function(require){ var templateFn = require('hbs!path/to/tpl'); // View now has access to compiled template // function }); post-template.hbs