Created
December 7, 2011 17:51
-
-
Save ccapndave/1443811 to your computer and use it in GitHub Desktop.
Spade and Coffeescript
This file contains hidden or 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
| 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") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might consider putting the application definition into a new file called
lib/core.js.Then you can do
require("tictactoe/core")so that yourmain.jsonly has requires.