Twig for the PHPTemplate Generation

chrisfree

Drupal 8 comes packed with loads of great new features, APIs and developer tools. There are sweeping changes aplenty. Not the least of which is the templating engine, Twig. 

Twig is a welcome improvement over the much maligned PHPTemplate engine, however, many front-end developers who've grown accustomed to the PHPTemplate-ing ways of old might feel a bit lost as they enter the unfamiliar world of Drupal 8 and Twig.

If you're a seasoned Drupal 7 themer, but still need to learn Twig, this session is for you. We'll cover everything you need to know to apply your hard fought PHPTemplate skills to Drupal 8 theming. You'll leave with the confidence and knowledge to begin using Twig on your next project.

This session will cover:
  • Why Twig?
  • Overview of Twig basics (variables, filters, functions, conditionals, etc.)
  • Solutions for real world Drupal templating problems via code samples 
  • Attaching custom libraries and other logic within Twig templates
  • How to sanely debug within Twig (Kint isn't always the answer)

Session Track

Front End

Experience Level

Beginner

Drupal Version