Sha256: 15a1b42734df69963408367b2d6cd161c6f93cad32e53f929fcded75cff1bc2d

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

/**
 * TODO: add description of class
 * @author: <%= config[:author] %> 
 * @class: main.js
 * */

/* global require */
(function() {
    'use strict';

    require.config({
        shim: {
            underscore: {
                exports: '_'
            },
            backbone: {
                deps: ['underscore', 'jquery'],
                exports: 'Backbone'
            }
        },
        paths: {
            jquery: 'libs/jquery/jquery-2.0.3.min',
            underscore: 'libs/underscore/underscore-1.5.2',
            backbone: 'libs/backbone/backbone-1.1.0',
            text: 'libs/requirejs-text/text-2.0.10'
        },
        urlArgs : "v=2"

    });

    require([
            'backbone',
            'views/Main.View',
            'routes/<%= config[:app_name] %>.Route',
    ], function (Backbone,  <%= config[:app_name] %>MainView, <%= config[:app_name] %>Routes) {
        /*jshint nonew:false*/
        
        // Initialize routing and start Backbone.history()
        new <%= config[:app_name] %>Routes();
        Backbone.history.start();

        // Initialize the main application view
        new <%= config[:app_name] %>MainView();
    });
}());

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
backbone_generator-0.0.4 lib/backbone_generator/generators/new/template/main.tt