<layout> is now <include> and supports bind="{{something}}", repeat="{{thing in things}}". This makes it possible to use it for both "layouts" and "partials".
Instead of the compiler basically being a huge AST in which we fill in the blanks, the compiler now uses a parse + replace approach. We write the compilation cases in normal JS, parse those to AST, perform transformations on it and include them in the real AST.
There is now an optimiser which does several passes to remove unnecessary code, hoists functions etc.
There is now explicit support for use as an express view engine.
This PR makes quite a few disjointed changes:
<layout>
is now<include>
and supportsbind="{{something}}"
,repeat="{{thing in things}}"
. This makes it possible to use it for both "layouts" and "partials".