Re: Strip-Function
| From: | Monte Ohrt | Date: | Wed, 18 Apr 2001 20:04:34 +0000 |
| Subject: | Re: Strip-Function | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-552@lists.php.net to get a copy of this message | ||
Maybe at a higher level, we could add a way to pass the completed
template output through a filter (a function of your choice) before
displaying or caching.
Andreas Aderhold wrote:
>
> Hi,
>
> is there any interest on a function that strips out some delimited string in
> the compiled template. Our designers are using Dreamweaver and DW Templates.
> So we have such tags in the HTML-Smaty-Templatefile
>
> <!-- #BeginTemplate "/Templates/Index.dwt" -->
> <!-- #BeginEditable "doctitle" -->
> <title><!--{$PAGETITLE}--></title>
> <!-- #EndEditable -->
>
> it would be nice to have a functions that strips out the comments delimited
> by
> "<!-- #" and "-->". Mabybe something like $strip =
> array("<!--#"=>"-->",
> more tags to strip); Maybe this is interesting for others too.
>
> What do you think?
>
> cu/andi
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/