Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Hiding comments ?

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
sarahfoxnz
Smarty Regular


Joined: 11 Apr 2010
Posts: 67

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: 1749

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:   
Post new topic   Reply to topic    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