Skip to content

Instantly share code, notes, and snippets.

@snikch
Created December 5, 2012 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snikch/4212385 to your computer and use it in GitHub Desktop.
Save snikch/4212385 to your computer and use it in GitHub Desktop.
Tower.js has me lost :(
class App.ProjectsController extends App.ApplicationController
@scope 'all'
@show: (a,b,c) =>
console.log "SHOWING"
# How do I get my model. Is this just completely wrong?
# snip
script type: 'text/x-handlebars', 'data-template-name': 'dashboard', ->
div id: 'projects', ->
ul ->
hEach 'project in App.projectsController.all', ->
li ->
a '{{action show project target="App.ProjectsController"}}', '{{project.name}}'
script "app = App.DashboardView.create().append()"
App.DashboardView = Ember.View.extend
templateName: 'dashboard'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment