Re: displaying unassigned variables
| From: | Monte Ohrt | Date: | Fri, 09 Feb 2001 17:39:26 +0000 |
| Subject: | Re: displaying unassigned variables | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-106@lists.php.net to get a copy of this message | ||
Smarty can sure do that, I'm just looking for some justification. Would
anyone use it? :-)
Also keep in mind, Smarty isn't just for HTML output...
Sylvain Bergé wrote:
>
> Monte Ohrt wrote:
>
> > Currently, if you attempt to display an unassigned variable in Smarty,
> > it simply displays nothing in place of the tag. Would there be any
> > benefits to anyone if there was an option to display nothing, display an
> > error, or just display the tag? I've seen other template engines do
> > this, but I'm not sure of its usefullness.
>
> Why not choose between :
>
> - displays nothing
> - display an error
> - display a comment in the HTML code
> Sylvain
>
> /* In a world without walls and borders, who needs windows and gates ? */
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/