Feature Request: indent parameter for include-Function
| From: | Matthias Schniedermeyer | Date: | Wed, 27 Aug 2003 09:47:29 +0000 |
| Subject: | Feature Request: indent parameter for include-Function | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10135@lists.php.net to get a copy of this message | ||
Hi
I have a page with a few "sub" templates that i include. To get the formating right i assign the include to a variable and use the "indent"-modifier to get the formating right.
- snip -
{include file=index/left.tpl assign=left}
{$left|indent:6}
- snip-
This way i can format "from the left" in the sub-templates and still get a perfect(tm) tree in the end-result.
With an indent-parameter for include i could skip the second step.
Another possibility would be to make the modifiers workable with include. I tried
{include file=index/left.tpl assign=left|indent:6}
But it didn't work. :-)
--
Matthias Schniedermeyer Telefonica Deutschland GmbH
System Design & Integration http://www.telefonica.de
System Designer voice: +49 5246 80 1768
mailto:citd@telefonica.de fax: +49 5246 80
2768
GPG-fingerprint = 9FC6 BE31 FC34 34B5 97E1 D34A B605 5ED9 FDC2 7C36