Re: simple templateing
| From: | Matthew Weier O'Phinney | Date: | Sat, 25 Sep 2004 19:51:46 +0000 |
| Subject: | Re: simple templateing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197829@lists.php.net to get a copy of this message | ||
* Mag <genphp@yahoo.com>:
> I am searching for a REAL simple templateing
> class/package
>
> I have googled for this and basically SMARTY and PAT
> is too bulky, the people who will be using this script
> will be pretty dumb and all I can trust them to do
> would be something like this:
>
> <header>
> <category> ---- <contents>
> <footer>
>
> and the template should have a cacheing feature...
I use Smarty. The thing about Smarty is it can be as simple or as
complex as you want it. I personally feel you could do exactly as you
describe with it -- just tell your designers the bare minimum of what
you will allow in a template.
You might look into Savant as well -- but the idea behind Savant is that
a template is simply another PHP page, only you do code related to
display logic only. I don't believe it does caching, either (though I'm
unsure of that point).
PEAR also has a number of templating systems, and I'd be surprised if
they don't do caching; look under the HTTP or HTML categories on PEAR
for some possibilities.
--
Matthew Weier O'Phinney | mailto:matthew@garden.org
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org