Comment bug?
| From: | Anders Janson | Date: | Sat, 21 Jul 2001 22:41:48 +0000 |
| Subject: | Comment bug? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1235@lists.php.net to get a copy of this message | ||
Hi guys!
Problem 1:
Comments do not work the way they should.
Sometimes I want to 'disable' parts of the code, which in normal
programming is done with comments, but currently Smarty does not
really allow that. A comment can not contain a right delimiter '}'.
The following example illustrates the problem:
{*
{$something}
*}
Whenever the commented section contains a smarty tag... no go!
If the parser could be modified to handle anything between '{*' and
'*}' as a comment, it would be great.
For now, I let a simple prefilter handle this.
Problem 2:
The new section attribute "max" is missing in the docs.
Finally, a suggestion: Pass $this as a second argument to the prefilter
functions, there are many variables that the prefilter might need.
For example left/right delimiters.
/Anders Janson