Skip to content

Instantly share code, notes, and snippets.

@jjgonecrypto
Created June 18, 2012 18:04
Show Gist options
  • Save jjgonecrypto/2949747 to your computer and use it in GitHub Desktop.
Save jjgonecrypto/2949747 to your computer and use it in GitHub Desktop.
require 2.0 shims
require.config
baseUrl: '/static/coffee/app'
paths:
text: '/static/js/require.text'
underscore: '/static/js/underscore-min'
backbone: '/static/js/backbone-min'
backboneTP: '/static/js/backbone-tastypie'
shim:
underscore:
exports: '_'
backbone:
deps: ["underscore", "jquery"]
exports: "Backbone"
backboneTP:
deps: ["backbone"]
define ["views/container"], (Container) ->
$ ->
new Container
el: 'body'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment