Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($) {
- window.Item = Backbone.Model.extend({});
- window.ItemView = Backbone.View.extend({
- initialize: function() {
- this.template = Handlebars.compile($("#item-template").html());
- },
- render : function() {
- var renderContent = this.template(this.model.toJSON());
- console.log(renderContent);
- $(this.el).html(renderContent);
- return this;
- }
- });
- })(jQuery);
Add Comment
Please, Sign In to add comment