Basic Syntax: Comments

All Smarty template tags are enclosed within delimiters. By default these are { and }, but they can be changed.

For the examples in this manual, we will assume that you are using the default delimiters. In Smarty, all content outside of delimiters is displayed as static content, or unchanged. When Smarty encounters template tags, it attempts to interpret them, and displays the appropriate output in their place.

Comments
Template comments are surrounded by asterisks, and that is surrounded by the delimiter tags like so:

{* this is a comment *}

Smarty comments are NOT displayed in the final output of the template, unlike. These are useful for making internal notes in the templates which no one will see ;-)

Example: Comments within a template