tower-content

Tower Content

Tower Content

Data for the DOM.

$ component install tower/content
var content = require('tower-content');
 
content('menu')
  .attr('items', 'array')
  .attr('selected', 'object')
  .action('select', function(index){
    this.selected = this.items[index];
  });
 
content('menu').init({ items: [ 'a', 'b' ] }).select(1);
  • http://en.wikipedia.org/wiki/Content_(media)

MIT