Re: [SMARTY-DEV] Strip whitespace between smarty tags
[email protected] (Clay Loveless)
| Newsgroups | php.smarty.dev |
|---|---|
| Message-ID | <BDCE5D64.30DCC%[email protected]> |
On 11/27/04 1:08 PM Pacific Time, messju mohr ([email protected]) wrote: > On Sat, Nov 27, 2004 at 09:21:46PM +0100, Rainer Müller wrote: >> Hi, >> >> It would be great to strip out whitespace between smarty tags, so that >> it does not end up in the output. >> Example: >> >> {foreach name=example from=$events item=item} >> {if $smarty.foreach.example.first}foo{/if} >> ... >> {/foreach} > > that's what {strip} is for. see: > http://smarty.php.net/manual/en/language.function.strip.php Actually, I believe {strip} strips out all whitespace that occurs between {strip}{/strip} tags. Sounds like what Rainer is suggesting is ignoring whitespace between Smarty tags, but leaving other whitespace intact. -Clay -- Killersoft.com