<commit_before># backbone-nestify

Backbone Nestify is a [Backbone.js](http://backbonejs.org) plugin for nesting Backbone [Models](http://backbonejs.org/#Model) and [Collections](http://backbonejs.org/#Collection). It depends only on Backbone and [Underscore](http://underscorejs.org/). 

## Download
* [0.2.0 release](dist/backbone-nestify-0.2.0.min.js?raw=true) - minified, 4kb
* [0.2.0 release](dist/backbone-nestify-0.2.0.js?raw=true) - 23 kb
* [latest snapshot](dist/backbone-nestify-0.3.0.js?raw=true)

## Features

Backbone Nestify provides two features:

* A syntax to more easily nest, and access, attributes within nested Models and Collections.

```javascript
var item3 = shoppingCart.get("items|3"); 
// returns the nested item Model instance

shoppingCart.set("items|3|id", 50]); 
// Third item now has an id of 50
```

* An API to specify the nesting that should take place.

```javascript
var spec = {
    "account":AccountModel,
    "items":ItemCollection,
};

var mixin = nestify(spec);

var ShoppingCartModel = Backbone.Model.extend(mixin);
```
<commit_msg>remove 'latest snapshot' download link for now<commit_after># backbone-nestify

Backbone Nestify is a [Backbone.js](http://backbonejs.org) plugin for nesting Backbone [Models](http://backbonejs.org/#Model) and [Collections](http://backbonejs.org/#Collection). It depends only on Backbone and [Underscore](http://underscorejs.org/). 

## Download
* [0.2.0 release](dist/backbone-nestify-0.2.0.min.js?raw=true) - minified, 4kb
* [0.2.0 release](dist/backbone-nestify-0.2.0.js?raw=true) - 23 kb

## Features

Backbone Nestify provides two features:

* A syntax to more easily nest, and access, attributes within nested Models and Collections.

```javascript
var item3 = shoppingCart.get("items|3"); 
// returns the nested item Model instance

shoppingCart.set("items|3|id", 50]); 
// Third item now has an id of 50
```

* An API to specify the nesting that should take place.

```javascript
var spec = {
    "account":AccountModel,
    "items":ItemCollection,
};

var mixin = nestify(spec);

var ShoppingCartModel = Backbone.Model.extend(mixin);
```

{'fraction_non_alphanumeric': 0.14467483506126297, 'fraction_numerical': 0.022148916116870875, 'mean_word_length': 4.676470588235294, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3329821', 'n_tokens_mistral': 734, 'n_tokens_neox': 688, 'n_words': 190}