RE: [PHP] Is this doable?
| From: | John Holmes | Date: | Sat, 25 May 2002 11:34:20 +0000 |
| Subject: | RE: [PHP] Is this doable? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99216@lists.php.net to get a copy of this message | ||
Smarty is the only one that I really remember, as far as template
engines.
http://www.phpinsider.com/php/code/Smarty/
There are others, like FastTemplate. Do a search on Google or
SourceForge and you'll come up with a couple dozen.
What they do is separate the code from presentation. Instead of having
code in your HTML file to display how many hits the page has gotten,
you'd have a tag like {accessed_per_day}. The template engine will do
the function to get the number and replace {accessed_per_day} with the
appropriate number.
---John Holmes...
> -----Original Message-----
> From: Sandman [mailto:mr@sandman.net]
> Sent: Saturday, May 25, 2002 3:34 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Is this doable?
>
> In article <002e01c20370$4ebee8f0$b402a8c0@mango>,
> holmes072000@charter.net (John Holmes) wrote:
>
> > Can PHP do that? Of course. Can it do it that easily right out of
the
> > box. No. Just like the RXML backend is already written that parses
> > <accessed per="day" /> into the appropriate number, the backend
would
> > have to be written for PHP to do the same thing. You'd have to write
a
> > template engine, basically, that'll look for special tags and do the
> > appropriate PHP functions when it encounters them.
> >
> > I think you'd be far better off learning PHP and just adapting an
> > existing template engine to suit your needs. There are plenty of
them
> > out there.
>
> I have no problem with learning PHP, I like it alot. But in some
> instances,
> I like the RXML approcah better.
>
> You talk about template engines, what are they and can you name some
> examples?
>
> --
> Sandman[.net]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php