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

Hiding 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 -> General
View previous topic :: View next topic  
Author Message
sarahfoxnz
Smarty Regular


Joined: 11 Apr 2010
Posts: 76

PostPosted: Mon Oct 22, 2018 12:21 am    Post subject: Hiding comments ? Reply with quote

Hello.

I saw a reference to hiding comments in another thread in this forum, and see this line of code in one of the Smarty tutorials.

{* the following will be all run into one line upon output *}

- i saw it in the STRIP page.

im not sure what it is called, but Does this allow me to put comments in my templates but they will NOT show up on the html output ?

Whats the official name of the option ? so i can look it up
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Oct 22, 2018 12:03 pm    Post subject: Reply with quote

Code:
{ldelim}* … *{rdelim}
IS A comment.
Yes, these blocks are stripped at compile-time.
No, you don't have to explicitly use STRIP for it.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Tue Oct 23, 2018 12:20 pm    Post subject: Reply with quote

See https://www.smarty.net/docs/en/language.basic.syntax.tpl#language.syntax.comments
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 -> General 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