Pilot’s core is an Asynchronous Module Definition (AMD)-compliant loader that supports named & anonymous modules. If you’re unfamiliar with AMD, James Burke’s RequireJS has a great bit on Why AMD?
On top of Pilot’s AMD core sits 3 modules to get your application running quickly.
- A model module with a basic getter & setter that can be extended for more complex models.
- A view module that outputs HTML and handles DOM interaction that you’ll extend to create views.
- A pubsub module for publishing and subscribing to custom application events.
Under 3k minified and gzipped, Pilot is designed to do as much as possible with as little as possible. It isn’t a bloated library that forces you into any paradigms, but rather provides just enough to get you started quickly with the freedom to approach application design how you choose.
- Clone it at https://github.com/briancray/pilotjs.git
"main" is your starting module id.
pilot.render('body') in your main module.