Last active
December 15, 2015 01:09
-
-
Save davidvanleeuwen/5178354 to your computer and use it in GitHub Desktop.
Blog container
This file contains 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
define ['marionette'], (Marionette) -> | |
class Blog | |
constructor: (@options = {}) -> | |
# Exposed objects under this class. | |
@Routers = {} | |
@Views = {} | |
@Collections = {} | |
@Models = {} | |
@Layouts = {} | |
@App = new Backbone.Marionette.Application() | |
# To have it globally accessible | |
window.Blog = new Blog() | |
window.Blog.App.addRegions | |
container: 'body' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment