Created
October 11, 2013 15:34
-
-
Save kosz/6936839 to your computer and use it in GitHub Desktop.
This file contains 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
class Example extends Backbone.View | |
template: () -> | |
# render the template here and return | |
# a text object containing the template text | |
initialize: () -> | |
@render() | |
render: () -> | |
$(@el).append @template() | |
$("body").append @el | |
@postRender() | |
postRender: () -> | |
# initialize JQuery UI components here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment