JavaScripting

The definitive source of the best
JavaScript libraries, frameworks, and plugins.


  • ×

    A tiny foundation for building reactive views
    Filed under  › 

    • 🔾38%Overall
    • 1,276
    • 36.3 days
    • 🕩66
    • 👥7

    ripple.js

    Build Status

    A tiny foundation for building reactive views with plugins. It aims to have a similar API to Reactive, but allow composition of views, like React. The major difference for other view libraries is that there are no globals used at all. Each view has its own set of bindings and plugins. This makes composition of views really easy.

    var Person = ripple('<div>{{name}}</div>')
      .attr('name', { required: true, type: 'string' });
    
    var person = new Person({
      name: 'Tom'
    });
    
    person.appendTo(document.body);
    person.name = "Barry"; // DOM updates automatically
    

    Install

    component install ripplejs/ripple
    

    Browser Support

    Supports real browsers and IE9+.

    Documentation

    Documentation is on the wiki.

    Examples

    See more examples at ripplejs/examples

    Plugins

    • shortcuts - add custom key binding combos
    • events - add event listeners to the DOM and call methods on the view
    • each - Basic iteration using the each directive.
    • bind-methods - Bind all methods on the prototype to the view
    • markdown - Adds a directive to render markdown using Marked.
    • extend - Makes adding methods to the view prototype a little cleaner
    • intervals - Easily add and remove intervals
    • computed - Add computed properties.
    • refs - Easily reference elements within the template
    • dispatch - Dispatch custom DOM events up the tree

    View and add them on the wiki

    License

    MIT

    Show All