-
Notifications
You must be signed in to change notification settings - Fork 14
/
example.mustache
50 lines (37 loc) · 1.07 KB
/
example.mustache
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<title>
{{title}}
</title>
{{!}}
</head>
<body>
<div id="main">
<h1>Mustache Showdown</h1>
Basic mustache {{hello}}
{{ hello}}, {{hello }} and {{ hello }} are OK
<de>{{d d d}}
{{Everything will be hilighted here}}
Mustaches hilighted in
<span class="color:{{awesome_color}};font-size:1.2em">attribute value</span>
{{#repo}}
This is an mustache [enumerable] section
<li>{{ name }}</li>
{{/repo}}
You can {{{yield}}} here
{{! <> this is a comment TODO:}}
This is a partial {{> partial1 }}
Yet another partial {{< partial2 }}, for ctemplate
{{=<% %>=}}Sorry, cusomized delimiter not handled yet<%={{}}=%>
{{#if some_helper}}
And here is an example of handlebars if...
{{else}}
... with optional else added. Try matchit `%` command over if/else/if.
{{/if}}
Thanks goes to {{@defunkt}}
Feedback/blames go to {{@juvenn}}
{{Frustrations}} go to /dev/null
</div>
</body>
</html>