Re: Is this plugin useful?
| From: | Joscha Feth | Date: | Wed, 09 Apr 2003 14:21:51 +0000 |
| Subject: | Re: Is this plugin useful? | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1116@lists.php.net to get a copy of this message | ||
Luis wrote:
Hi,
> I wonder if a plugin to stop displaying a template may added to the
> smarty distro,
> Something like {stop [msg='foo']} that will be compiled into a
> die('foo'); statement.
> In some situations templates will be more readable if you can stop
> displaying rather than using a bunch of {if}s
I do not think it is useful, because some HTML Tags may not be closed and
always just sending a </body></html> is no good coding style, but whatever,
I created such a plugin especially (really!) for you:
http://dev.feth.com/PHP/Smarty/function.die.phps
greets,
Joscha