Enter your username and password to login to your account.
Twigify Drupal / Render All the Things!
This is a combined session taking a look at 2 solutions for problems in Drupal 8 theming:
> Twigify Drupal is a tool for automatically converting themes from Drupal 7 to Drupal 8.
> Render All the Things focuses on how to solve the problem of rendering deeply nested items and the challenges still to be overcome in the processing layer.
> Twigify Drupal
In part 1 we'll look at how Drupal's new compiled PHP-based templating language (Twig) brings about significant improvements to make front-end development simpler, faster and more secure. Twig promises to hand the power to create really awesome designs back to designers; to unfetter them from development cycles and constraints. We'll take an in-depth look at these specific changes.
We will also demo the Twigifier module which automatically converts Drupal 7 themes to Drupal 8. And we'll discuss best approaches to base theme / derivative theming in Twig, and how to automatically batch convert all your base derivative themes.
> Render All the Things
In part 2 we look at rendering in Drupal 8. Drupal 7 introduced a new system as part of the theme layer: Render API. Render API leveraged (unsurprisingly) the only tool we knew how to use at the time: A bunch of associative, nested arrays. Magic! But the theme system of Drupal 7 was becoming a tangled mess -- too many layers, APIs and inconsistencies abound. So we began to clean-up the theme system. The Twig initiative of 2012 was an important first step, but this is simply the tip of the iceberg: For Drupal's theme system to excel we need a better method of describing and accessing content as structure. Render API must change from its Arrays Of Doom to an OO-driven system. Come to this session to get a sense of the problem, and where the future might lead.