{"id":106768,"date":"2013-07-23T03:20:05","date_gmt":"2013-07-23T03:20:05","guid":{"rendered":"https:\/\/2013.buffalo.wordcamp.org\/?post_type=wcb_session&#038;p=106768"},"modified":"2013-08-10T21:21:56","modified_gmt":"2013-08-10T21:21:56","slug":"wp-templates-are-broken","status":"publish","type":"wcb_session","link":"https:\/\/buffalo.wordcamp.org\/2013\/session\/wp-templates-are-broken\/","title":{"rendered":"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 &hellip; <a href=\"https:\/\/buffalo.wordcamp.org\/2013\/session\/wp-templates-are-broken\/\">Continue reading <span class=\"screen-reader-text\">WordPress Templates are Broken! (but we can fix them)<\/span>  <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":5795068,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":1379190600,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[106759],"footnotes":""},"session_track":[10406],"session_category":[],"class_list":["post-106768","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-designdev"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3iFEU-rM4","session_date_time":{"date":"September 14, 2013","time":"4:30 pm"},"session_speakers":[{"id":"106759","slug":"jared-novack","name":"Jared Novack","link":"https:\/\/buffalo.wordcamp.org\/2013\/speaker\/jared-novack\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/buffalo.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions\/106768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buffalo.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/buffalo.wordcamp.org\/2013\/wp-json\/wp\/v2\/types\/wcb_session"}],"author":[{"embeddable":true,"href":"https:\/\/buffalo.wordcamp.org\/2013\/wp-json\/wp\/v2\/users\/5795068"}],"version-history":[{"count":4,"href":"https:\/\/buffalo.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions\/106768\/revisions"}],"predecessor-version":[{"id":171560,"href":"https:\/\/buffalo.wordcamp.org\/2013\/wp-json\/wp\/v2\/sessions\/106768\/revisions\/171560"}],"speakers":[{"embeddable":true,"href":"https:\/\/buffalo.wordcamp.org\/2013\/wp-json\/wp\/v2\/speakers\/106759"}],"wp:attachment":[{"href":"https:\/\/buffalo.wordcamp.org\/2013\/wp-json\/wp\/v2\/media?parent=106768"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/buffalo.wordcamp.org\/2013\/wp-json\/wp\/v2\/session_track?post=106768"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/buffalo.wordcamp.org\/2013\/wp-json\/wp\/v2\/session_category?post=106768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}