Sha256: a05a155debee1ebc8bae92d929745b4be2f30d86072a3df85797776004698b47

Contents?: true

Size: 362 Bytes

Versions: 26

Compression:

Stored size: 362 Bytes

Contents

all_libs= {}

expose= (name, as)->
  all_libs[as]= lib= require(name)
  exports[as]= lib

# Listing of all the libraries

expose 'jquery', '$'
expose 'backbone', 'Backbone'
expose 'hogan', 'Hogan'
expose 'underscore', '_'

# Helper to assign all libs 
exports.globalize= (ctx=window)->
  for own name, lib of all_libs
    ctx[name]= lib unless ctx[name]?
  this

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
gumdrop-0.3.7 lib/gumdrop/template/backbone/lib/javascript/all.js.coffee
gumdrop-0.3.6 lib/gumdrop/template/backbone/lib/javascript/all.js.coffee
gumdrop-0.3.5 lib/gumdrop/template/backbone/lib/javascript/all.js.coffee
gumdrop-0.3.4 lib/gumdrop/template/backbone/lib/javascript/all.js.coffee
gumdrop-0.3.3 lib/gumdrop/template/backbone/lib/javascript/all.js.coffee
gumdrop-0.3.2 lib/gumdrop/template/backbone/lib/javascript/all.js.coffee