Skip to content

Instantly share code, notes, and snippets.

@lukemorton
Created February 21, 2014 10:03
Show Gist options
  • Save lukemorton/9131722 to your computer and use it in GitHub Desktop.
Save lukemorton/9131722 to your computer and use it in GitHub Desktop.
class SiteView extends Uniform
init: ->
switch @el.data('view')
when "index":
new IndexView(el: @selielte)
when "about":
new AboutView(el: @el)
when "contact":
new ContactView(el: @el)
$ -> new SiteView(el: $('html'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment