rhapsodyjs-backbone

0.0.2 • Public • Published

RhapsodyJS Backbone adapter

Generate BackboneJS models from RhapsodyJS models

    $ npm install rhapsodyjs-backbone

The generated model uses the UMD pattern, so it will work if you're using globals (with <script>), RequireJS or Browserify/CommonJS.

Globals

The model will be accessible via the variable Model, and the collection will be acessible by the variable ModelCollection, where Model is the name of your model.

RequireJS and Browserify/CommonJS

The module object will be the following two attributes, model and collection.

Let's say that the module object is called Model:

    Model.model; //Gets the model
    Model.collection; //Gets the collection

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i rhapsodyjs-backbone

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • talyssonoc