Restructure static files into a single directory

This commit is contained in:
Andrew Miner
2015-03-08 15:05:24 -07:00
parent 997b37ab7d
commit 0a6c185965
5053 changed files with 383 additions and 175 deletions
@@ -0,0 +1,33 @@
###
Crafting Guide - configure_page_controller.coffee
Copyright (c) 2015 by Redwood Labs
All rights reserved.
###
PageController = require './page_controller'
ModPackController = require './mod_pack_controller'
########################################################################################################################
module.exports = class ConfigurePageController extends PageController
constructor: (options={})->
if not options.modPack? then throw new Error 'options.modPack is required'
if not options.storage? then throw new Error 'options.storage is required'
options.templateName = 'configure_page'
super options
@modPack = options.modPack
@storage = options.storage
# PageController Overrides #####################################################################
getTitle: ->
return "Configure"
# BaseController Overrides #####################################################################
onDidRender: ->
@modPackController = @addChild ModPackController, '.view__mod_pack', model:@modPack, storage:@storage
super