Re: head generation
| From: | Andrei Zmievski | Date: | Thu, 27 Sep 2001 13:41:13 +0000 |
| Subject: | Re: head generation | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1562@lists.php.net to get a copy of this message | ||
On Thu, 27 Sep 2001, Anders Janson wrote:
> Andrei Zmievski wrote:
>
> > On Thu, 27 Sep 2001, Ivo Jansch wrote:
> > > Is it possible to implement such a feature? Or would you be willing to
> > > incorporate this into Smarty if I develop it myself?
> >
> > Since Smarty is not meant for HTML generation exclusively, I don't think
> > we'd want to start adding features that rely on that.
>
> I agree with you, Andrei.
> But what if we rephrase the question a bit?
> "Could we have a postfilter functionality"?
>
> That could be used for numerous things, including that HTML specific stuff.
>
> Very easy to implement, I'd guess, if implemented the way prefilters are
> done now. Wouldn't hurt compiler performance much either, if not used.
We could definitely have postfilters -- in fact, that's why filters were
originally renamed to prefilters, because I anticipated something like
this. It's just that at the time, we couldn't come up with an example of
why you'd want to postfilter stuff.
-Andrei
"In this age, which believes that there is a short cut to everything,
the greatest lesson to be learned is that the most difficult way is, in
the long run, the easiest."
-Henry Miller, The Books in My Life