Skip directly to content

Twig is in Core! - But there is lots to do left

on Thu, 05/30/2013 - 19:28

TL;DR: After an extensive 5-day sprint during DrupalCon, Twig finally has landed in Drupal 8 Core and has been committed by the one and only alexpott in the single issues and then pushed as a whole. We still want to get lots done as part of

After Dries' post about "Reducing risk in the Drupal 8 release shedule." there was a concern in the Twig community how we can effectlively get the Twig initiative done. Single incremental patches were not possible anymore. So should we revert to the "Blocks" initiative approach and create one really really big mega patch that is hard to review and difficult to patch? Or working again in a sandbox, which in the past had given us too less core coverage and such led to inefficient review.


The first thing we did was to focus again on what we need to achieve to be in core and no longer pose a release risk. While our goal is to convert every single theme_ function to a template - or if that is not possible, make it at least possible to implement a template for them (like field.html.twig or views-view-field.html.twig are working already now), it was very inefficient for getting Twig done. This would have meant getting 97 issues RTBC, verified and merged into one big patch, which was a major undertaking, we have been working on for months.

However to pass the "risk-reduction" we only would need to make sure that "every commit puts us closer to release". So we changed strategy and focused only on the tpl.php conversions as Drupal 8 cannot ship with two theme engines. After a 5-day long sprint and lots of profiling (with XHProf-Kit) we finally made it in and are secured in core.

Thank you to all the contributors that helped make this possible!

Next Steps?

We (Jenlampton, John Albin and me) also had an enthusiastic session about Twig, where we outlined some of the next steps. In the twig initiative we kinda all have our personal wishlists and we also have our big meta issue with lots of things to help with.

There is still time to code freeze date, so lets sing the twig song: "One-Seventy-Five-Seventy-Five-Five-Zero - Come review a patch, be a Drupal 8 Hero!". In this case writing patches is also appreciated.

Our wish- and worklists:

If you want to have a great theme system, join us now in our efforts to make the theme system of Drupal 8 consistent, easy to use and flexible!

You can join us in IRC on FreeNode in #drupal-twig channel or jump right into the issue queue!

Thanks a lot!


Mindy's picture

“Twig is in Core! - But there is lots to do left | Fabianx Blog” ended up being genuinely enjoyable and informative! In the present day world that is very hard to execute. Many thanks, Mindy

Post new comment