aboutsummaryrefslogtreecommitdiff
path: root/src/templating/test4/must
blob: 003b93666edd606d46baef5aa2fdb0805a249035 (plain)
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
50
51
52
53
54
55
56
57
58
This are extensions!!

{{person.name}}
{{person.age}}

{{person\.name}}
{{person\.name\=Fred}}

{{#person.name=Jon}}
Hello Jon
{{/person.name=Jon}}

{{^person.name=Jon}}
No Jon? Hey Jon...
{{/person.name=Jon}}

{{^person.name=Harry}}
No Harry? Hey Calahan...
{{/person.name=Harry}}

{{#person\.name=Fred}}
Hello Fred
{{/person\.name=Fred}}

{{^person\.name=Fred}}
No Fred? Hey Fred...
{{/person\.name=Fred}}

{{#person\.name\=Fred=The other Fred.}}
Hello Fred#2
{{/person\.name\=Fred=The other Fred.}}

{{^person\.name\=Fred=The other Fred.}}
No Fred#2? Hey Fred#2...
{{/person\.name\=Fred=The other Fred.}}

{{#persons}}
{{#lang=!fr}}Hello {{name}}, {{age}} years{{/lang=!fr}}
{{#lang=fr}}Salut {{name}}, {{age}} ans{{/lang=fr}}
{{/persons}}

{{#persons}}
{{name}}: {{age=24}}/{{age}}/{{age=!27}}
{{/persons}}

{{#fellows.*}}
{{*}}: {{age=24}}/{{age}}/{{age=!27}}
{{/fellows.*}}

{{#*}}
 (1) {{*}}: {{.}}
   {{#*}}
     (2) {{*}}: {{.}}
     {{#*}}
       (3) {{*}}: {{.}}
     {{/*}}
   {{/*}}
{{/*}}