(OT) Templating laziness
| From: | Michael Kimsal | Date: | Wed, 22 Nov 2000 23:54:43 +0000 |
| Subject: | (OT) Templating laziness | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26765@lists.php.net to get a copy of this message | ||
Oooohhhhh! Flamebait!!! :)
I don't think it's laziness, actually. I think people are looking to
'structure' things, and that's generally good. I do think that often
times people overstructure things, though, and that's generally bad.
I'm not knocking fasttemplates or other systems - we've used them
ourselves. But as we worked more and more with it and other
variations, it began to seem like more work than it was worth,
considering (1) what we needed to do and (2) the alternative.
Matt McClanahan wrote:
> On Wed, 22 Nov 2000, Geoff Caplan wrote:
>
> > Michael
> >
> > > Any reason why you don't just do <?=$data;?> instead of {placeholder} in
> > > the templates? .......... The PHP engine *is* a 'fast and light template
> > substitution parser'.
> > > Yes, extra templating layers buy you things like looping result sets,
> > etc.,
> > > but you can easily write a loop or function to do the same thing. Only
> > > real benefit I see of using a full 'template system' is cross-platform
> > > compatibility.
> > >
> >
> > This is a very good point. I hadn't really thought it through. Many thanks!
> > From this point of view, it is hard to account for the popularity of PHP
> > template parsers....
>
> My flamebait opinion: Laziness. :)
>
> Matt
>
--
==========================
Michael Kimsal
PHP meta search
http://www.phphelpdesk.com/search/
PHP Training courses
http://www.tapinternet.com/php