Templates
| From: | Rich Cavanaugh | Date: | Sat, 15 Jul 2000 23:07:27 +0000 |
| Subject: | Templates | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-6785@lists.php.net to get a copy of this message | ||
I'm kinda new to this list, but I've been using PHP for a long time. Thanks for the great
tool to everyone on the PHP/Zend team. Anyway, I just finished a template engine that takes a
different approach from the other ones and I wanted to get some opinions from other PHP people out
there.
The approach I took was to have the engine "discover" all of the blocks on it's own.
You then simply assign an array/hash table to it and it parses through the template and assigns the
values based on the keys in the array. It allows you to have blocks embedded in blocks and have
blocks repeating in any way you can think of.
You can download it at:
http://www.advolve.com/~rich/AdvTemplate.tar.gz
As of right now, there's very little documentation but there are two examples. It's fairly
straight forward.
--
Rich Cavanaugh
Advolve Technologies, Inc.
http://www.advolve.com/