Skip to content
From our Community Blog:

Building sane, reusable WordPress templates with Twig and Timber

Subscribe to Community Blog updates

You can learn more about this session on the WPCampus 2017 website at https://2017.wpcampus.org/schedule/lightning-talks/building-sane-reusable-wordpress-templates-twig-timber/.

Session Description:
Traditional WordPress templates are written in PHP code that mixes HTML output with more advanced programming logic. The Timber plugin for WordPress lets you move the markup part of your templates into separate files written in Twig, a simple yet powerful templating language. When you separate logic from layout in this way, your themes will be easier to read, easier to edit and more portable.

In this lightning talk, Jesse will introduce the power of Timber to start simplify your themes using the versatile Twig templating language. He will also share examples of WordPress templates built with Timber, ranging from simple to advanced.

Speaker:
Jesse Janowiak

What is WPCampus?
WPCampus 2017 was the second annual in-person conference for the WPCampus community, a gathering of web professionals, educators and people dedicated to the confluence of WordPress in higher education. The event took place July 14-15 on the campus of Canisius College in Buffalo, New York. Learn more about the event at https://2017.wpcampus.org.

Login to WordPress