All Things TWIG

Megan McDermott

In this session we will look at some of the cool stuff you can do with Twig in Drupal 8. Topics include:

Twig filters
Drupal specific filters
Using variables and conditionals
Adding classes
Creating paths, urls, and links
Attaching libraries
Embeds and Includes
Along the way you'll also see how themes are structured in Drupal 8, some tips for structuring theme files, and more.

This session is low on slides and high on code samples. We'll spend most of the session looking at real template files and examining all the ways twig can help you to structure your code.


Megan
Senior Front-end Developer, Waterloo
I have been doing web design and development for over 20 years. Over the years I have done everything from content strategy (only it wasn't called that then), to back-end development and everything in between. Currently I focus on front-end development, with a little design and UX work thrown in whenever I get a chance. I've been working with Drupal since 2007. My partner, Liam McDermott, and I operate Woolwich Web Works: small but capable web development company located in Waterloo, Ontario. We are available either on a project basis or to extend your team. Please contact us to find out how we can help you today.

https://drupalnorth.org/en/session/all-things-twig

Drupal is a registered trademark of Dries Buytaert.