Overview for
twig
At the ng-conf event in May 2016 there were sessions discussing how Angular 2 can support server side rendering in various platforms. If you're working on a project running on Node.js, then Angular 2 is a native citizen. For other options like ASP, Java and PHP there are a few options on the table.
JavaScript has come to rule the web as of late. It's everywhere, powering things from the backend to the front end. One of the interesting things that have arrived is rendering the same exact code on the server and in the browser - this is known as Isomorphic JavaScript or Universal JavaScript.
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.