UNPKG

muffin.io

Version:

A full stack development tool for creating modern webapps

28 lines (21 loc) 597 B
Backbone = require 'Backbone' I18n = require 'muffin/I18n' start = -> # Set the locale I18n.defaultLocale = 'en' I18n.supportedLocales = ['en'] locale = I18n.getBrowserLocale() I18n.setLocale locale, -> window.apps = {} # Create the base app BaseApp = require '../base/app' apps.base = new BaseApp() apps.base.initialize() # Create the main app MainApp = require './app' window.app = apps.main = new MainApp() apps.main.initialize() # Start dispatching routes apps.main.createRouter() Backbone.history.start() module.exports = start