yeoman / generator-backbone

Scaffold out a Backbone.js project
http://yeoman.io
638 stars 157 forks source link

yo backbone:(something generator) #318

Closed can-cc closed 9 years ago

can-cc commented 9 years ago

Sometimes generate this: define([ 'jquery', 'underscore', 'backbone', 'templates' ], function ($, _, Backbone, JST) { 'use strict'; ………… ……

and sometimes generate this:

App.Views = App.Views || {};

(function () { 'use strict';

App.Views.MainView = Backbone.View.extend({

What is the difference? and how to import the latter object?

arthurvr commented 9 years ago

What is the difference?

The latter is used when not using requirejs. You can read up on the readme (the options section).

and how to import the latter object?

It's gets simply imported in the page by a script tag.

arthurvr commented 9 years ago

Is this issue okay to close? It's more like a question than a bug/request anyways.

kevva commented 9 years ago

Yup, thanks for keeping up with these old issues :D.