Speakers: Carl Hughes

  • Carl Hughes: Get Twig, use Twig, smile

    Carl Hughes: Get Twig, use Twig, smile

    WordCamp Bristol 2017Speaker: Carl Hughes

    August 23, 2018 — WordPress theming is great but with Twig it can be more fun. Twig is a PHP template engine thats incredibly fun to use. With Twig you write your HTML separate from your PHP files, this separation means you can bypass the_loop entirely.
    Twig templates are reusable HTML fragments which can be used multiple times in your theme. You could even create a style guide that directly uses the same Twig templates as your theme meaning any updates to your themes HTML updates your style guide as well.
    This talk will cover the benefits of using Twig when theming, explain how to get started and provide some working examples for you to try on your own.

    Presentation Slides »