A suggestion
| From: | J. M. Castagnetto | Date: | Tue, 29 Feb 2000 04:06:21 +0000 |
| Subject: | A suggestion | ||
| Groups: | php.template | ||
| Request: | Send a blank email to php-template+get-238@lists.php.net to get a copy of this message | ||
The implementation of the language for display layout and logic seems to me nice and simple in the specs. But it may help to put a blurb in the text explaining the template engine idea, making clear the decomposition of the tasks.
A scheme may help, something along the lines of (I am not good at ASCII art, so bear w/ me):
Browser
|Server
|PHP -- Script (Processing logic)
|
| Template +-- template file(s)
+-- engine --+
(layout) +-- configuration file(s)
(hopefully it will not be mangled too bad by e-mail programs not using proportional, instead of fixed, fonts)
With some sort of caption, to drive the point further:
"The PHP template engine uses external template and configuration files, to generate the appropriate layout representation of the data processed in the calling (host?) PHP script. In principle a script could pick different templates to display the same data in different ways: HTML for a web browser, XML for data encapsulation, etc."
Hope I got most of the stuff above right. Feel free to correct me if I did not understand some point in the PHP-TE description (hey! new acronym ;)
=====
Jesus M. Castagnetto - jcastagnetto@hotmail.com
Pilot stuff & etc.:
http://www.geocities.com/jm_castagnetto/
LAB: http://www.scripps.edu/research/metallo
Metalloprotein DB: http://metallo.scripps.edu/
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com