4 ms·
> Also templating feels a bit old school. After using extends and blocks with Jinja2 and Twig the "layout that includes your action view" model feels so rigid a
by ch4s3 7y ago
> Also templating feels a bit old school. After using extends and blocks with Jinja2 and Twig the "layout that includes your action view" model feels so rigid and limited. It seems you can use render_existing/3 that would be equivalent to content_for in Rails but that's not that obvious to me
There are some things to keep in mind with eex: it's built into the base language, it's meant to be super simple and explicit, and it built to be represented as a linked list. All of those things make it really fast, the simplicity makes it easy to understand.
There are some trade-offs of course, but it's not unpleasant to work with.