generator-maryo icon indicating copy to clipboard operation
generator-maryo copied to clipboard

Namespacing?

Open shaekuronen opened this issue 11 years ago • 1 comments

Hmm, first go of it, I'm not really seeing how namespacing works, especially if using Generator Backbone for models, views etc. With Generator Backbone I get a collection like

/*global generatorMaryo, Backbone*/

generatorMaryo.Collections = generatorMaryo.Collections || {};

(function () {
    'use strict';

    generatorMaryo.Collections.CollectionTestCollection = Backbone.Collection.extend({

        model: generatorMaryo.Models.CollectionTestModel

    });

})();

while with Maryo I get a collection view

define([
    'marionette'
],

function (Marionette) {

    return Marionette.CollectionView.extend({

        itemView: item_view_test,

        events: {},

        initialize: function () {}

    });
});

Are there any docs that provide a primer for this? Thanks!

shaekuronen avatar Feb 28 '14 15:02 shaekuronen

Hi @shaekuronen, I'll add a gist shortly to show you how I get things working.

simonblee avatar Mar 01 '14 08:03 simonblee