Carl Hughes: Get Twig, use Twig, smile

Continue the discussion

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Published

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 »

Rate this:

Event

WordCamp Bristol 2017 10

Speakers

Carl Hughes 1

Tags

template 5
twig 3

Language

English 6681

Download
MP4: Low, Med, High
OGG: Low
Subtitles
Subtitle this video →
Producer
%d bloggers like this: