Slide 30
Slide 30 text
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
30
a JavaScript application
// using curl.js as a module loader!
curl.config({!
packages: {!
app: { location: 'app'}!
},!
paths: {!
leaflet: { location: 'lib/leaflet/dist/leaflet', config:
cjsConfig },!
jquery: 'lib/jquery/jquery.min', !
}!
});!
!
// Promises-based API for executing callbacks!
curl(['app', 'jquery']).then(start, fail);