Overview for
riot.js
Twig is everywhere. eZ Platform, Bolt, Drupal 8 and other popular projects have adopted it. At the same time Node.js and Web Components have risen to popularity. This article discusses merging the popular PHP templating engine Twig to Riot.js, a lightweight React-like user interface library using Node.js for server side rendering.
There is plenty of buzz around the web development community about web components. There are standards polyfill implementations and custom approaches such as Facebook's React and Flux combo. While there is no shortage of options, this post will introduce yet another one useful family of technologies.
Previously I wrote about Web Components standards and polyfills and how they'll finally bring us closer to a web build with reusable and isolated components. Rather than use those I thought I'd go ahead and create a web component with an alternative technology: Riot.js