<s>
Mustache	B-Language
is	O
a	O
web	B-Application
template	I-Application
system	I-Application
with	O
implementations	O
available	O
for	O
ActionScript	B-Operating_System
,	O
C++	B-Language
,	O
Clojure	B-Language
,	O
CoffeeScript	B-Application
,	O
ColdFusion	B-Language
,	O
Common	B-Language
Lisp	I-Language
,	O
Crystal	B-Application
,	O
D	B-Application
,	O
Dart	B-Language
,	O
Delphi	B-Language
,	O
Elixir	B-Language
,	O
Erlang	B-Operating_System
,	O
Fantom	B-Language
,	O
Go	B-Application
,	O
Haskell	B-Language
,	O
Io	B-Application
,	O
Java	B-Language
,	O
JavaScript	B-Language
,	O
Julia	B-Application
,	O
Lua	B-Language
,	O
.NET	B-Application
,	O
Objective-C	B-Language
,	O
OCaml	B-Language
,	O
Perl	B-Language
,	O
PHP	B-Application
,	O
Pharo	B-Language
,	O
Python	B-Language
,	O
R	B-Language
,	O
Racket	B-Operating_System
,	O
Raku	B-Application
,	O
Ruby	B-Language
,	O
Rust	B-Application
,	O
Scala	B-Application
,	O
Smalltalk	B-Application
,	O
Swift	B-Application
,	O
Tcl	B-Operating_System
,	O
CFEngine	B-Protocol
,	O
and	O
XQuery	B-Language
.	O
</s>
<s>
Mustache	B-Language
is	O
described	O
as	O
a	O
logic-less	O
system	O
because	O
it	O
lacks	O
any	O
explicit	O
control	O
flow	O
statements	O
,	O
like	O
if	O
and	O
else	O
conditionals	B-Language
or	O
for	B-Language
loops	I-Language
;	O
however	O
,	O
both	O
looping	O
and	O
conditional	B-Language
evaluation	O
can	O
be	O
achieved	O
using	O
section	O
tags	O
processing	O
lists	O
and	O
anonymous	B-General_Concept
functions	I-General_Concept
(	O
lambdas	B-General_Concept
)	O
.	O
</s>
<s>
It	O
is	O
named	O
"	O
Mustache	B-Language
"	O
because	O
of	O
heavy	O
use	O
of	O
braces	O
,	O
{	O
}	O
,	O
that	O
resemble	O
a	O
sideways	O
moustache	O
.	O
</s>
<s>
Mustache	B-Language
is	O
used	O
mainly	O
for	O
mobile	O
and	O
web	O
applications	O
.	O
</s>
<s>
Mustache-1	O
was	O
inspired	O
by	O
ctemplate	O
and	O
et	O
,	O
and	O
began	O
as	O
a	O
GitHub	B-Application
distribution	O
at	O
the	O
end	O
of	O
2009	O
.	O
</s>
<s>
A	O
first	O
version	O
of	O
the	O
template	B-Language
engine	I-Language
was	O
implemented	O
with	O
Ruby	B-Language
,	O
running	O
YAML	B-Protocol
template	B-Language
texts	O
.	O
</s>
<s>
Logic-less	O
:	O
no	O
explicit	O
control	O
flow	O
statements	O
,	O
all	O
control	O
driven	B-Application
by	I-Application
data	I-Application
.	O
</s>
<s>
Strong	O
separation	O
of	O
concerns	O
:	O
logic	O
from	O
presentation	O
:	O
it	O
is	O
impossible	O
to	O
embed	O
application	O
logic	O
in	O
the	O
templates	B-Language
.	O
</s>
<s>
The	O
Mustache	B-Language
template	B-Language
does	O
nothing	O
but	O
reference	O
methods	O
in	O
the	O
(	O
input	O
data	O
)	O
view	O
.	O
</s>
<s>
output	O
XML	B-Protocol
)	O
is	O
contained	O
in	O
the	O
template	B-Language
.	O
</s>
<s>
In	O
an	O
model	O
–	O
view	O
–	O
presenter	O
(	O
MVP	O
)	O
context	O
:	O
input	O
data	O
is	O
from	O
MVP-presenter	O
,	O
and	O
the	O
Mustache	B-Language
template	B-Language
is	O
the	O
MVP-view	O
.	O
</s>
<s>
The	O
simplest	O
template	B-Language
:	O
</s>
<s>
Template	B-Language
with	O
section	O
tag	O
:	O
</s>
<s>
Here	O
,	O
when	O
x	O
is	O
a	O
Boolean	O
value	O
then	O
the	O
section	O
tag	O
acts	O
like	O
an	O
if	O
conditional	B-Language
,	O
but	O
when	O
x	O
is	O
an	O
array	O
then	O
it	O
acts	O
like	O
a	O
foreach	O
loop	O
.	O
</s>
<s>
Template	B-Language
that	O
is	O
un-escaped	O
:	O
</s>
<s>
Here	O
,	O
if	O
body	O
contains	O
HTML	B-Language
,	O
it	O
wo	O
n't	O
be	O
escaped	O
.	O
</s>
<s>
Syntax	O
highlighting	O
is	O
available	O
in	O
Atom	B-Application
,	O
Coda	B-Operating_System
,	O
Emacs	B-Application
,	O
TextMate	B-Application
,	O
Vim	B-Application
and	O
Visual	B-Language
Studio	I-Language
Code	I-Language
.	O
</s>
<s>
The	O
Mustache	B-Language
templates	B-Language
support	O
is	O
built	O
into	O
many	O
web	B-Application
application	I-Application
frameworks	I-Application
(	O
ex	O
.	O
</s>
<s>
CakePHP	B-Language
)	O
.	O
</s>
<s>
The	O
support	O
in	O
JavaScript	B-Language
includes	O
both	O
client-side	O
programming	O
with	O
many	O
JavaScript	B-Language
libraries	I-Language
and	O
Ajax	B-General_Concept
frameworks	I-General_Concept
such	O
as	O
jQuery	B-Language
,	O
Dojo	B-General_Concept
and	O
YUI	B-Language
,	O
as	O
well	O
as	O
server-side	O
JavaScript	B-Language
using	O
Node.js	B-Language
and	O
CommonJS	B-Language
.	O
</s>
<s>
There	O
are	O
many	O
Mustache	B-Language
Engine	O
implementations	O
available	O
,	O
and	O
all	O
of	O
them	O
meet	O
a	O
common	O
formal	B-Application
specification	I-Application
(	O
see	O
external	O
links	O
)	O
,	O
that	O
for	O
final	O
users	O
results	O
in	O
the	O
common	O
syntax	O
.	O
</s>
<s>
All	O
Mustache	B-Language
Engines	O
,	O
in	O
the	O
v1.X	O
architecture	O
,	O
have	O
a	O
render	O
method	O
,	O
a	O
Mustache_Compiler	O
class	O
and	O
a	O
Parser	O
class	O
.	O
</s>
<s>
Mustache	B-Language
inspired	O
numerous	O
JavaScript	B-Language
template	B-Language
libraries	O
which	O
forked	O
from	O
the	O
original	O
simplicity	O
to	O
add	O
certain	O
functionality	O
or	O
use	O
.	O
</s>
<s>
Handlebars.js	B-Language
is	O
self-described	O
as	O
:	O
</s>
<s>
Handlebars	O
differs	O
from	O
its	O
predecessor	O
in	O
that	O
,	O
within	O
Block	O
Expressions	O
(	O
similar	O
to	O
sections	O
in	O
Mustache	B-Language
)	O
,	O
Helpers	O
allow	O
custom	O
function	O
through	O
explicit	O
user-written	O
code	O
for	O
that	O
block	O
.	O
</s>
