Components, patterns and sample code for lhorie/mithril.js