Sha256: 96f0f66a827490177c9bc23283dcb0c4285db2b03b820beaeae0ad8fa08e5c22

Contents?: true

Size: 771 Bytes

Versions: 2

Compression:

Stored size: 771 Bytes

Contents

/**
 * TODO: add description of class
 * @author: 
 * @class: <%= config[:collection_name] %>Collection
 * */

/* global define */
var <%= config[:app_name] %> = <%= config[:app_name] %> || {};

(function() {
    'use strict';

    define([
        'jquery',
        'underscore',
        'backbone',
        ], function($, _, Backbone) {
            
            // Collection is a group of models that have custom methods
            // that you create for them
            <%= config[:app_name] %>.<%= config[:collection_name] %>Collection = Backbone.Collection.extend({

                //TODO: Place your collection code here
                 
            });

            return <%= config[:app_name] %>.<%= config[:collection_name] %>Collection;
        });
}());

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
backbone_generator-0.0.5 lib/backbone_generator/generators/collections/template/Collection.tt
backbone_generator-0.0.4 lib/backbone_generator/generators/collections/template/Collection.tt