Re: Re: New thread - Template base class design
| From: | Philippe Jausions | Date: | Fri, 11 Jun 2004 19:02:53 +0000 |
| Subject: | Re: Re: New thread - Template base class design | ||
| References: | 1 2 3 | Groups: | php.pear.dev php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30519@lists.php.net to get a copy of this message | ||
Paul M Jones wrote:
Not exactly. Actually I was referring to the implementation... The template could be a file name, an object, a string template... and the template engine would be the piece of code that read the template and do whatever is needed to get the content out of it, i.e. do an include, parse/replace, call a method on it... -PhilippeAlso, in my views there are two things when it comes to templates: A template itself that describes how things are put together, and a template engine that use the template to actually generate something.Yeah, there are a number of views about that; you're talking about the "declarative" approach, whereas others prefer the "imperative" line. Harry Fuecks and the WACT guys have done a nice analysis here:http://wact.sourceforge.net/index.php/TemplateView