Re: [SMARTY-DEV] nested comments
| From: | Monte Ohrt | Date: | Thu, 11 Dec 2003 17:34:42 +0000 |
| Subject: | Re: [SMARTY-DEV] nested comments | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1975@lists.php.net to get a copy of this message | ||
I can see where it would be nice to cleanly comment out a block of code
you are working on. example:
{**
{* func1 doesn't work yet! *}
{func1 foo=bar (??) }
**}
The difference between {** **} and a {if 0}{/if} is that the tokenizer
still parses things between the {if} statements, so you could possibly
get broken stuff. That, and it is immediately recognizable that {** **}
are comments. An {if 0}{/if} might be confusing to someone else reading
your template.
Monte
On Thu, 2003-12-11 at 11:18, boots wrote:
> --- Monte Ohrt <monte@ispi.net> wrote:
> > Maybe I jumped into the middle of a conversation and didn't
> > pick up the actual question. I thought there was a need to comment
> > out blocks of template code, including other comments.
>
> Hmmm. Comments are stripped anyway, so that seems like a non-starter :)
>
> I'm only replying now because I want to correct my final statement
> which had a typo--it should have been:
>
> >> I mean *NO* disrespect to anyone, I'm just rushed :)
>
> (oops!)
>
> xo boots
>
>
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/