atril

Experimental JS rendering library

Ideas from ReactJS, Polymer, Angular 2, Aurelia, made simple

class.*

Used as class.X, this adds class X when the expression is truthy and removes it when the expression evaluates to falsy.

Example:

<div let.checked="true">
  <label class.info="checked" class.error="!checked">
    <input twoway.checked="checked" type="checkbox">
    <span>I'm checked: {{checked}}</span>
  </label>
</div>
Overview Quickstart Component Attribute Mold Databinding Bootstrapping if for let on class ref demo