{"id":252010,"date":"2013-09-01T12:13:00","date_gmt":"2013-09-01T17:13:00","guid":{"rendered":"https:\/\/2013.toronto.wordcamp.org\/?post_type=wcb_session&#038;p=252010"},"modified":"2013-09-01T12:13:15","modified_gmt":"2013-09-01T17:13:15","slug":"12-wordpress-templates-are-broken-but-we-can-fix-them","status":"publish","type":"wcb_session","link":"https:\/\/toronto.wordcamp.org\/2013\/session\/12-wordpress-templates-are-broken-but-we-can-fix-them\/","title":{"rendered":"12 &#8211; WordPress Templates are Broken! (but we can fix them)"},"content":{"rendered":"<p>WordPress is awesome \u2014 but the loop isn\u2019t. When you&#8217;re writing a custom theme, even simple site requirements can turn your home.php file into a muck of code. Clean markup? Good luck. At Upstatement, we wanted better templates. So we built them. <\/p>\n<p>At Upstatement we integrated Twig (a template language like Mustache, Hogan and Handlebars) into WordPress to speed-up code, testing, and design. Designers and front-end developers can work quickly with the clarity of HTML and use variables from WordPress where they need. This dramatically simplifies and speeds-up the theme development process.<\/p>\n<p>Template languages are a major feature of Rails, Node and Django, but not something found in WordPress (until now). In this session, I&#8217;ll walk you through how to build a theme using Timber and Twig. With this understanding, you&#8217;ll be making more themes with cleaner code and less debugging.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress is awesome \u2014 but the loop isn\u2019t. When you&#8217;re writing a custom theme, even simple site requirements can turn your home.php file into a muck of code. Clean markup? Good luck. At Upstatement, we wanted better templates. So we built them. At Upstatement we integrated Twig (a template language like Mustache, Hogan and Handlebars) [&hellip;]<\/p>\n","protected":false},"author":4215205,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1380988800,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[251926],"footnotes":""},"session_track":[10024],"session_category":[],"class_list":["post-252010","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-advanced"],"jetpack_sharing_enabled":true,"session_date_time":{"date":"October 5, 2013","time":"11:00 am"},"session_speakers":[{"id":"251926","slug":"jared-novack","name":"Jared Novack","link":"https:\/\/toronto.wordcamp.org\/2013\/speaker\/jared-novack\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions\/252010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":1,"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions\/252010\/revisions"}],"predecessor-version":[{"id":252012,"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions\/252010\/revisions\/252012"}],"speakers":[{"embeddable":true,"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/speakers\/251926"}],"author":[{"embeddable":true,"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wporg\/v1\/users\/tcais"}],"wp:attachment":[{"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/media?parent=252010"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/session_track?post=252010"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/toronto.wordcamp.org\/2013\/wp-json\/wp\/v2\/session_category?post=252010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}