{"id":851,"date":"2017-08-18T09:10:02","date_gmt":"2017-08-18T09:10:02","guid":{"rendered":"https:\/\/2017.capetown.wordcamp.org\/?post_type=wcb_session&#038;p=851"},"modified":"2017-10-06T04:56:24","modified_gmt":"2017-10-06T04:56:24","slug":"twig-templating-and-why-its-addictive","status":"publish","type":"wcb_session","link":"https:\/\/capetown.wordcamp.org\/2017\/session\/twig-templating-and-why-its-addictive\/","title":{"rendered":"Twig templating and why it&#8217;s addictive"},"content":{"rendered":"<p>WordPress is built on PHP, and this has its many benefits but also many downfalls. One of them being that PHP was never meant to be a templating language. Introducing Twig &amp; Timber! Twig a flexible, fast, and secure template language for PHP. Timber brings both WordPress and Twig together, providing the perfect combination and functionality and flexibility. I will not do a WordPress project without them!<\/p>\n<p>In this workshop, I will walk the attendees through some basic Twig\/Timber templating using a real theme. I aim to showcase some of the great benefits of using Twig\/Timber and how they still maintain what we love about WordPress.<\/p>\n<p>I work through the templating with the audience providing a demo theme, and also share kickstarter themes\/documentation so they can continue working beyond the workshop.<\/p>\n<p>Disclaimer: Twig\/Timber can be addictive!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress is built on PHP, and this has its many benefits but also many downfalls. One of them being that PHP was never meant to be a templating language. Introducing Twig &amp; Timber! Twig a flexible, fast, and secure template language for PHP. Timber brings both WordPress and Twig together, providing the perfect combination and &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/capetown.wordcamp.org\/2017\/session\/twig-templating-and-why-its-addictive\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Twig templating and why it&#8217;s addictive&#8221;<\/span><\/a><\/p>\n","protected":false},"author":14648530,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1509016500,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[724],"footnotes":""},"session_track":[6851,498564],"session_category":[],"class_list":["post-851","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-code","wcb_track-workshops-1"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8jfsy-dJ","session_date_time":{"date":"October 26, 2017","time":"11:15 am"},"session_speakers":[{"id":"724","slug":"chris-muller","name":"Chris Muller","link":"https:\/\/capetown.wordcamp.org\/2017\/speaker\/chris-muller\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/capetown.wordcamp.org\/2017\/wp-json\/wp\/v2\/sessions\/851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/capetown.wordcamp.org\/2017\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/capetown.wordcamp.org\/2017\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":3,"href":"https:\/\/capetown.wordcamp.org\/2017\/wp-json\/wp\/v2\/sessions\/851\/revisions"}],"predecessor-version":[{"id":1390,"href":"https:\/\/capetown.wordcamp.org\/2017\/wp-json\/wp\/v2\/sessions\/851\/revisions\/1390"}],"speakers":[{"embeddable":true,"href":"https:\/\/capetown.wordcamp.org\/2017\/wp-json\/wp\/v2\/speakers\/724"}],"author":[{"embeddable":true,"href":"https:\/\/capetown.wordcamp.org\/2017\/wp-json\/wporg\/v1\/users\/mech_chris"}],"wp:attachment":[{"href":"https:\/\/capetown.wordcamp.org\/2017\/wp-json\/wp\/v2\/media?parent=851"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/capetown.wordcamp.org\/2017\/wp-json\/wp\/v2\/session_track?post=851"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/capetown.wordcamp.org\/2017\/wp-json\/wp\/v2\/session_category?post=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}