Step 1 in converting to a Backbone-based website

This commit is contained in:
Andrew Miner
2014-12-22 16:36:04 -08:00
parent dc9fd0de07
commit 16832e02dd
95 changed files with 41866 additions and 17 deletions
+20
View File
@@ -0,0 +1,20 @@
###
# Crafting Guide - main.coffee
#
# Copyright (c) 2014 by Redwood Labs
# All rights reserved.
###
views = require './views'
Logger = require './logger'
CraftingGuideRouter = require './crafting_guide_router'
if typeof(global) is 'undefined'
window.global = window
global.views = views
global.logger = new Logger level:Logger.TRACE
global.router = new CraftingGuideRouter
logger.info "CraftingGuide is ready"
Backbone.history.start pushState:true