Use Twig + Timber To Build Better WordPress Themesby@jhough
3,319 reads

Use Twig + Timber To Build Better WordPress Themes

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Twig is a PHP template engine that allows developers to take advantage of shortcuts for repeating patterns. Timber is a plugin that integrates Twig with Wordpress to build beautifully written themes in WP. Twig's biggest advantage is its ability to separate PHP and HTML while simultaneously supporting both. Using Twig to build your WordPress theme allows PHP files to serve as the data and/or logic, leaving the Twig file free to take on the full extent of the HTML and display properties. With this level of organization, you’ll code faster, cleaner, smarter—your future WordPress site will thank you for it.

Company Mentioned

Mention Thumbnail
featured image - Use Twig + Timber To Build Better WordPress Themes
Justin Hough HackerNoon profile picture

@jhough

Justin Hough

CDO of Hounder


Receive Stories from @jhough

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!