Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created December 7, 2011 17:51
Show Gist options
  • Select an option

  • Save ccapndave/1443811 to your computer and use it in GitHub Desktop.

Select an option

Save ccapndave/1443811 to your computer and use it in GitHub Desktop.
Spade and Coffeescript
require("sproutcore")
Tictactoe = SC.Application.create()
window.Tictactoe = Tictactoe
require("tictactoe/model/cell")
require("tictactoe/model/game")
require("tictactoe/view/cell_view")
require("tictactoe/view/board_view")
@wagenet
Copy link

wagenet commented Dec 7, 2011

You might consider putting the application definition into a new file called lib/core.js.
Then you can do require("tictactoe/core") so that your main.js only has requires.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment