Skip to content
Elias Ponvert edited this page Mar 26, 2012 · 3 revisions

Bundles

Bundles are collections of associated Resources coupled with their Controllers, which taken together represent a coherent API. Bundles reconcile the declared versions of their member resource/controller pairs, constructing a shared progression that pulls up versions as necessary.

Bundles are the main "product" of mesh; servers and clients work with bundles, not individual resources. A bundle can be exported as a specification for use in documentation and interface generation.

Example

api = Bundle('api',
    mount(Example, ExampleController),
    mount('resources.Something', 'controllers.SomethingController'),
    mount('resources.FutureResource'),
)
Clone this wiki locally