Re: [SMARTY-DEV] literal bug

From: Date: Fri, 23 May 2003 18:57:10 +0000
Subject: Re: [SMARTY-DEV] literal bug
References: 1 2 3  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1509@lists.php.net to get a copy of this message
Monte Ohrt wrote:
What purpose is there putting spaces between the left delim and the func/var name? It has never been supported, I don't see a need for it. If anything, it might cause problems later letting this looser syntax work. Monte
When I use Smarty template, I change the delimiters to <% and %>. Then I put a space between them and the variable or function or whatever for readability. So variables look like <% $variable %> and functions look like <% function attr="value" %>. At present, the regular expressions for other functions and variables allow for the space, so basically every function *but* "literal" allow for that space. How is that for consistency. Well, I suppose it's your perogative to not put it in, but it came as a shock to me when I found that that was it worked. Paul

« previous php.smarty.dev (#1509) next »