<s>
Thymeleaf	B-Language
is	O
a	O
Java	B-Language
XML/XHTML/HTML5	O
template	B-Application
engine	I-Application
that	O
can	O
work	O
both	O
in	O
web	O
(	O
servlet-based	O
)	O
and	O
non-web	O
environments	O
.	O
</s>
<s>
It	O
is	O
better	O
suited	O
for	O
serving	O
XHTML/HTML5	O
at	O
the	O
view	O
layer	O
of	O
MVC-based	O
web	O
applications	O
,	O
but	O
it	O
can	O
process	O
any	O
XML	B-Protocol
file	O
even	O
in	O
offline	O
environments	O
.	O
</s>
<s>
It	O
provides	O
full	O
Spring	B-Application
Framework	I-Application
integration	O
.	O
</s>
<s>
In	O
web	O
applications	O
Thymeleaf	B-Language
aims	O
to	O
be	O
a	O
complete	O
substitute	O
for	O
JavaServer	B-Language
Pages	I-Language
(	O
JSP	O
)	O
,	O
and	O
implements	O
the	O
concept	O
of	O
Natural	O
Templates	O
:	O
template	O
files	O
that	O
can	O
be	O
directly	O
opened	O
in	O
browsers	O
and	O
that	O
still	O
display	O
correctly	O
as	O
web	O
pages	O
.	O
</s>
<s>
Thymeleaf	B-Language
is	O
open-source	B-Application
software	I-Application
,	O
licensed	O
under	O
the	O
Apache	B-Application
License	I-Application
2.0	I-Application
.	O
</s>
<s>
Java	B-Language
template	B-Application
engine	I-Application
for	O
XML	B-Protocol
,	O
XHTML	B-Language
and	O
HTML5	B-Application
.	O
</s>
<s>
No	O
hard	O
dependency	O
on	O
the	O
Servlet	B-Application
API	O
.	O
</s>
<s>
Two	O
dialects	O
available	O
out-of-the-box	O
:	O
Standard	O
and	O
SpringStandard	O
(	O
for	O
Spring	B-Application
MVC	I-Application
apps	O
,	O
same	O
syntax	O
as	O
Standard	O
)	O
.	O
</s>
<s>
XML	B-Protocol
:	O
validating	O
against	O
a	O
DTD	B-Language
or	O
not	O
.	O
</s>
<s>
XHTML	B-Language
1.0	I-Language
and	O
1.1	O
:	O
validating	O
against	O
standard	O
DTDs	O
or	O
not	O
.	O
</s>
<s>
HTML5	B-Application
:	O
both	O
XML-formed	O
code	O
and	O
legacy-based	O
HTML5	B-Application
.	O
</s>
<s>
Legacy	O
non-XML	O
code	O
will	O
be	O
automatically	O
cleaned	O
and	O
converted	O
to	O
XML	B-Protocol
form	O
.	O
</s>
<s>
Automatic	O
DOCTYPE	O
translations	O
–	O
from	O
template	O
DTD	B-Language
to	O
result	O
DTD	B-Language
–	O
for	O
(	O
optional	O
)	O
validation	O
of	O
both	O
template	O
and	O
result	O
code	O
.	O
</s>
<s>
Extremely	O
extensible	O
:	O
can	O
be	O
used	O
as	O
a	O
template	B-Application
engine	I-Application
framework	O
if	O
needed	O
.	O
</s>
<s>
The	O
following	O
example	O
produces	O
an	O
HTML5	B-Application
table	O
with	O
rows	O
for	O
each	O
item	O
of	O
a	O
Listxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1	O
variable	O
called	O
allProducts	O
.	O
</s>
