Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

nested comments

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
gerard
Smarty Regular


Joined: 18 Apr 2003
Posts: 84

PostPosted: Fri Nov 14, 2003 8:29 am    Post subject: nested comments Reply with quote

Sometimes I want to comment out a section of a template that contains comments. It causes an error - Smarty ends the comment at the first *} and any thereafter cause problems.
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Fri Nov 14, 2003 2:03 pm    Post subject: Reply with quote

You know, you can't do that in PHP either Smile But PHP at least has alternate forms of comments. Really, the only reason I can see for this is to comment out code chunks during development. Try this instead to temporarily comment out code while avoiding nested comments:
Code:
{if 0}
...won't be executed
{/if}

HTH
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP