{"id":411933,"date":"2014-02-05T04:29:06","date_gmt":"2014-02-05T04:29:06","guid":{"rendered":"https:\/\/2014.stlouis.wordcamp.org\/?post_type=wcb_session&#038;p=411933"},"modified":"2014-03-10T02:00:46","modified_gmt":"2014-03-10T02:00:46","slug":"developer-session-xii","status":"publish","type":"wcb_session","link":"https:\/\/stlouis.wordcamp.org\/2014\/session\/developer-session-xii\/","title":{"rendered":"WordPress Templates are Broken! (But we can fix them) (Intermediate)"},"content":{"rendered":"<p>WordPress is awesome \u2014 but the loop isn\u2019t. When you\u2019re writing a custom theme, even simple site requirements can turn your single.php file into a muck of code. Clean markup? Good luck. At Upstatement, we wanted a better way to write and maintain templates. So we built it.<\/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 key feature of Rails, Node and Django, but not something found in WordPress (until now). In this session, I\u2019ll walk you through how to build a theme using Timber and Twig. With this understanding, you\u2019ll be making more themes with cleaner code and less debugging.<\/p>\n<p>Speaker slides can be found here:\u00a0<a href=\"http:\/\/upstatement.github.io\/presentations\/2014\/wordcamp-stl\/#\/\">http:\/\/upstatement.github.io\/presentations\/2014\/wordcamp-stl\/#\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress is awesome \u2014 but the loop isn\u2019t. When you\u2019re writing a custom theme, even simple site requirements can turn your single.php file into a muck of code. Clean markup? Good luck. At Upstatement, we wanted a better way to &hellip; <a href=\"https:\/\/stlouis.wordcamp.org\/2014\/session\/developer-session-xii\/\">Continue reading <span class=\"screen-reader-text\">WordPress Templates are Broken! (But we can fix them) (Intermediate)<\/span>  <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":8873307,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1393693200,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[385030],"footnotes":""},"session_track":[5041],"session_category":[],"class_list":["post-411933","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-developer"],"jetpack_sharing_enabled":true,"session_date_time":{"date":"March 1, 2014","time":"5:00 pm"},"session_speakers":[{"id":"385030","slug":"jared-novack","name":"Jared Novack","link":"https:\/\/stlouis.wordcamp.org\/2014\/speaker\/jared-novack\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/stlouis.wordcamp.org\/2014\/wp-json\/wp\/v2\/sessions\/411933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stlouis.wordcamp.org\/2014\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/stlouis.wordcamp.org\/2014\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":6,"href":"https:\/\/stlouis.wordcamp.org\/2014\/wp-json\/wp\/v2\/sessions\/411933\/revisions"}],"predecessor-version":[{"id":586977,"href":"https:\/\/stlouis.wordcamp.org\/2014\/wp-json\/wp\/v2\/sessions\/411933\/revisions\/586977"}],"speakers":[{"embeddable":true,"href":"https:\/\/stlouis.wordcamp.org\/2014\/wp-json\/wp\/v2\/speakers\/385030"}],"author":[{"embeddable":true,"href":"https:\/\/stlouis.wordcamp.org\/2014\/wp-json\/wporg\/v1\/users\/jarednova"}],"wp:attachment":[{"href":"https:\/\/stlouis.wordcamp.org\/2014\/wp-json\/wp\/v2\/media?parent=411933"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/stlouis.wordcamp.org\/2014\/wp-json\/wp\/v2\/session_track?post=411933"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/stlouis.wordcamp.org\/2014\/wp-json\/wp\/v2\/session_category?post=411933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}