RE: Strip-Function
| From: | Andreas Aderhold | Date: | Thu, 19 Apr 2001 14:25:24 +0000 |
| Subject: | RE: Strip-Function | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-558@lists.php.net to get a copy of this message | ||
Hi Monte,
> As long as the data you want stripped is static in the template, that
> would work fine. If you want data stripped that is created by the
> template at runtime, then that wouldn't help.
OK that's right. But I do only feed dynamic data to the template that is
really proofed, correct and without extra stuff like comments etc. In my
opinion it's not the job of a template system to edit dynamic data
provided - thats the job of the script programmer.
It's about static strips here - the designers are able to maintain Smarty
templates with dreamweaver and add comments to the html that are not for the
eyes of the enduser. So the compiler strips em out. I think a cool, feauture
and since the template is parsed anyway just looking for some other tags to
strip out is not too much work. But great benefit, i guess.
> I guess it depends on the scope of the functionality needed.
Definetly It does ;-)
cu
andi