{"id":882,"date":"2006-12-21T00:00:00","date_gmt":"2006-12-20T23:00:00","guid":{"rendered":"https:\/\/wwwneu.strehle.de\/tim\/weblog\/archives\/2006\/12\/21\/820\/"},"modified":"2006-12-21T00:00:00","modified_gmt":"2006-12-20T23:00:00","slug":"820","status":"publish","type":"post","link":"https:\/\/www.strehle.de\/tim\/weblog\/archives\/2006\/12\/21\/820\/","title":{"rendered":"Template Engines"},"content":{"rendered":"<p>Brian Lozier back in 2003 &#8211; <a href=\"http:\/\/www.massassi.com\/php\/articles\/template_engines\/\" title=\"Template Engines\">Template Engines<\/a>:<\/p>\n<p>&#8222;I&#8217;m basically advocating a &#8222;template engine&#8220; that uses PHP code as it&#8217;s native scripting language. I know, this has been done before. When I read about it, I thought simply, &#8222;what&#8217;s the point?&#8220; After examining my co-worker&#8217;s argument and implementing a template system that uses straight PHP code, but still achieves the ultimate goal of separation of business logic from presentation logic (and in 40 lines of code!), I have realized the advantages and honestly, can probably never go back.&#8220;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Brian Lozier back in 2003 &#8211; Template Engines: &#8222;I&#8217;m basically advocating a &#8222;template engine&#8220; that uses PHP code as it&#8217;s native scripting language. I know, this has been done before. When I read about it, I thought simply, &#8222;what&#8217;s the point?&#8220; After examining my co-worker&#8217;s argument and implementing a template system that uses straight PHP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[1],"tags":[],"class_list":["post-882","post","type-post","status-publish","format-standard","hentry","category-weblog"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts\/882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/comments?post=882"}],"version-history":[{"count":0,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts\/882\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/media?parent=882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/categories?post=882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/tags?post=882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}