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('spine/lib/manager') | |
class Main extends Spine.Stack | |
routes: | |
'adventure': 'adv' | |
'home': 'home' | |
'information': 'info' | |
controllers: | |
info: Information | |
home: Home |
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
class Main extends Spine.Controller | |
constructor : -> | |
super | |
@routes { # called after init routes have been loaded, manual trigger needed if path match. | |
'/app/main' : -> | |
# do stuff | |
}, trigger:true | |
module.exports = Main |
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
class Main extends Spine.Controllers | |
constructor : -> | |
super | |
@routes | |
'/app*glob' : -> | |
# do something | |
module.exports = new Main |
NewerOlder