Smarty Library Tutorial: how to insert comments into template


It is good practice to insert comment lines to explain the structure of the template

Template comments are surrounded by {* like this code

 

{* I'am a comment: i'm not displayed in the final output *}

 

There is a difference between smarty comments and html comments.

Smarty comments not appear in the output.

Related articles