Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hogart/skull
Skull sits on top of Backbone and protects your application's brains.
https://github.com/hogart/skull
Last synced: 16 days ago
JSON representation
Skull sits on top of Backbone and protects your application's brains.
- Host: GitHub
- URL: https://github.com/hogart/skull
- Owner: hogart
- Created: 2013-03-25T15:47:52.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-08-05T17:36:25.000Z (over 9 years ago)
- Last Synced: 2024-10-18T16:19:15.397Z (3 months ago)
- Language: JavaScript
- Homepage: http://hogart.github.io/skull/docs/
- Size: 1.24 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Skull
Skull sits on top of Backbone and protects your application's brains.
It deals with several annoying things in Backbone-based development:
* **Nested views management and memory leaks** are no longer problem: nested views described in declarative way (much like events) and are created and destroyed automagically
* **Enhanced templating management** for Views, _.template as default engine, template caching even if engine doesn't support it (and vice versa for debugging purposes), and marking start and end of every *rendered* template in DOM
* **Global objects, like `application`** are no longer needed with Registry pattern implementation and DI
* **No more annoying duplication of URLs in models and collections** — just declare `resource` member in your model
* **Redefine global syncing or for particular model or collection** is no longer problem, override `Skull.Syncer`
* **«What is Application?»** problem solved with `Skull.Application` class
* **«It's nor a model, nor a collection, nor a view, not a router…»** Define your own class hierarchy, based on `Skull.Abstract` and `Skull.Observable`And many more small improvements an even more to come.
## Installation
Skull supports npm and bower:
```
npm install backbone-skull
bower install backbone-skull
```Skull can be used with both CommonJS (Browserify) and AMD (require.js) loaders, as well as plain old browser globals.
## Usage
Please refer to `example` directory.
## Development
Clone repo, perform `npm install` and start hacking. To run tests, do `npm test`, to update docs — `npm jsdoc`. Skull relies on jscs and eslint for code conventions and on mocha/chai for unit-tests.