Skip to content

Instantly share code, notes, and snippets.

@kosz
Created October 11, 2013 15:34
Show Gist options
  • Save kosz/6936839 to your computer and use it in GitHub Desktop.
Save kosz/6936839 to your computer and use it in GitHub Desktop.
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