Skip to content

Instantly share code, notes, and snippets.

@michaeldeol
Created August 29, 2012 22:15
Show Gist options
  • Save michaeldeol/3519588 to your computer and use it in GitHub Desktop.
Save michaeldeol/3519588 to your computer and use it in GitHub Desktop.
define(function ( require ) {
var $ = require( 'jquery' ),
_ = require( 'underscore' ),
Backbone = require( 'backbone' ),
lib = require( './lib' ),
controller = require( './controller/c1' ),
model = require( './model/m1' );
//A fabricated API to show interaction of
//common and specific pieces.
controller.setModel(model);
$(function () {
// controller.render(lib.getBody());
controller.render( $('body') );
console.log( 'main1.js loaded' );
console.log( Backbone.VERSION );
console.log( _.VERSION );
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment