Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 379 Bytes

Readme.md

File metadata and controls

25 lines (15 loc) · 379 Bytes

list

An abstraction for managing a list of views. Basically, List is to Collection as View is to Model.

Installation

$ component install segmentio/list

Example

var list = require('list')
  , ItemView = require('./item-view');

// Later on...
var List = list(ItemView);

var view = new List()
collection.each(view.add.bind(view));

License

MIT