Re: [SMARTY-DEV] Strip whitespace between smarty tags

From: Date: Sat, 27 Nov 2004 20:35:30 +0000
Subject: Re: [SMARTY-DEV] Strip whitespace between smarty tags
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2592@lists.php.net to get a copy of this message
On Sat, 2004-11-27 at 21:21 +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} > > The indentation before {if} is in the output and now the indentation in > html source looks very strange. > I don't want to use unindented smarty code in my templates, because this > would decrease readability. > > Rainer > Are you using tabs or spaces for your indentation? -Robby -- /*************************************** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | robby@planetargon.com * 503.351.4730 | blog.planetargon.com * PHP/PostgreSQL Hosting & Development * --- Now supporting PHP5 --- ****************************************/

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.smarty.dev (#2592) next »