Skip to content

Instantly share code, notes, and snippets.

@jrf0110
Created September 28, 2012 22:00
Show Gist options
  • Save jrf0110/3802301 to your computer and use it in GitHub Desktop.
Save jrf0110/3802301 to your computer and use it in GitHub Desktop.
Typical app.js
require.config({
hbt: {
extension: 'html'
}
});
define(function(require){
var
domread = require('domReady')
, util = require('utils')
, Views = require('views')
, app = {
view: new Views.AppView()
}
;
app.view.render();
domready(function(){
utils.dom(body).html(app.view.el);
});
return app;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment