Welcome to Geeklog, Anonymous Friday, November 22 2024 @ 08:09 pm EST

Downloads

Root : Add-ons : Hacks : 
snapshot
Category: Add-ons arrow Hacks
Tags: -
Date: 2007-10-08 10:41
Size: 21.73 KB
Version: 1
MD5: e7f67fd64db27876e3264ba66c14832d
Rating: 0.00
Popularity: 858   POP
PHP was created so people could create websites by mixing code right in the HTML. When designers decided that mixing business logic with presentation was a bad thing, rather than using disciplined coding techniques to avoid that pitfall, the template library was born. So, an interpreted language designed to create HTML was being used to interpret template files to make HTML.
This hack attempts to make templates faster by turning them back into PHP. The existing templates are converted into working PHP code and stored in a cached directory. "Running" the template becomes as easy as "include"ing the cached file.

See the forum post in the hacks category for more details.