Created
December 9, 2012 19:52
-
-
Save phawk/4246722 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var app = app || {}; | |
| app.views = app.views || {}; | |
| app.views.MyView = Backbone.View.extend({ | |
| render: function() { | |
| // Use a handlebars template or similar here | |
| var html = "Some html template content here"; | |
| this.$el.html(html); | |
| } | |
| }); | |
| new app.views.MyView({ | |
| el: $('.some-div-container') | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment