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

Some of syntaxes are:
Comments:

Template comments are surrounded by asterisks (*), and that is surrounded by the delimiter tags like: {* *}.

SYNTAX

{* Single line smarty comment*}
{* Multiline smarty
comment *}

Variables

Variables assigned from Smarty

Attributes

Question for Smarty

  1. Write the code in php so that when I run the following code in smarty I get the output as
    India is my nation.I love India.
    smarty code:- {$country} is my nation.I love {$country}.
After editing Click here:
Php Code :
Output:
Hello World
Smarty Code :