<s>
Smarty	B-Language
is	O
a	O
web	B-Application
template	I-Application
system	I-Application
written	O
in	O
PHP	B-Application
.	O
</s>
<s>
Smarty	B-Language
is	O
primarily	O
promoted	O
as	O
a	O
tool	O
for	O
separation	O
of	O
concerns	O
.	O
</s>
<s>
Smarty	B-Language
is	O
intended	O
to	O
simplify	O
compartmentalization	B-Application
,	O
allowing	O
the	O
front-end	O
of	O
a	O
web	O
page	O
to	O
change	O
separately	O
from	O
its	O
back-end	O
.	O
</s>
<s>
Smarty	B-Language
generates	O
web	O
content	O
through	O
the	O
placement	O
of	O
special	O
Smarty	B-Language
tags	O
within	O
a	O
document	O
.	O
</s>
<s>
Tags	O
are	O
directives	O
for	O
Smarty	B-Language
that	O
are	O
enclosed	O
by	O
template	O
delimiters	O
.	O
</s>
<s>
These	O
directives	O
can	O
be	O
variables	O
,	O
denoted	O
by	O
a	O
dollar	O
sign	O
( $	O
)	O
,	O
functions	O
,	O
logical	B-Language
or	O
loop	O
statements	O
.	O
</s>
<s>
Smarty	B-Language
allows	O
PHP	B-Application
programmers	O
to	O
define	O
custom	O
functions	O
that	O
can	O
be	O
accessed	O
using	O
Smarty	B-Language
tags	O
.	O
</s>
<s>
Since	O
Smarty	B-Language
separates	O
PHP	B-Application
from	O
HTML	O
,	O
there	O
are	O
two	O
files	O
—	O
one	O
contains	O
the	O
presentation	O
code	O
:	O
an	O
HTML	O
template	O
,	O
including	O
Smarty	B-Language
variables	O
and	O
tags	O
-	O
-	O
which	O
might	O
look	O
like	O
this	O
:	O
</s>
<s>
The	O
business	B-Architecture
logic	I-Architecture
to	O
use	O
the	O
Smarty	B-Language
template	O
above	O
could	O
be	O
as	O
follows	O
:	O
</s>
