Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Backbone-inspired companion to the Closure Library
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
collection
controller
csrf
model
net
repo
router
string
view
coccyx.js
coccyxdeps.js
coccyxlicense.txt
readme.md

readme.md

Coccyx.js

Coccyx is a library inspired by backbone.js and spine.js designed to work with the Closure Library and the Closure Compiler.

Attributes

  • Compatible with the Closure Compiler in "advanced" mode without relying on an externs file.
  • A model+repository persistence metaphor with pluggable repository back ends for local or remote persistence.
  • Easy model JSON serialization/deserialization to compiler-renamed member properties via goog.object.reflect (also used for key-based property pubsub).
  • An HTML5 History-based routing framework using a parser ported from the Gorilla mux package that provides sophisticated route parsing as well as route reversing (generation) and also allows routing across modules.
  • A collection class with fast key-based access, ordering and a number of convenient functional-style methods like map, reduce and find.
  • Extensive use of goog.async.Deferred for asynchronous callback handling and chaining, including routing and all persistence operations.
  • A publish/subscribe mechanism for observing/binding model, model attribute and collection changes based on goog.pubsub to avoid the overhead of a DOM event system.

Status

The Coccyx project is in use in production, but should still be considered an Alpha release. The API is still in flux and a number of bugs are still outstanding with more undoubtedly lurking.

License

Coccyx is provided under a BSD-style license. See coccyxlicense.txt. The route parsing and reversing portions are ported from Gorilla, see /router/gorillalicense.txt.

Something went wrong with that request. Please try again.