Skip to content

Namespacing? #16

@shaekuronen

Description

@shaekuronen

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions