-
Notifications
You must be signed in to change notification settings - Fork 11
/
layout_test.html
98 lines (83 loc) · 1.66 KB
/
layout_test.html
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<template name="BlockLayout">
{{#Layout template="LayoutOne"}}
main-
{{#contentFor "footer"}}
footer
{{/contentFor}}
{{/Layout}}
</template>
<template name="BlockLayoutWithData">
{{#Layout template="LayoutWithData" data=getData}}
main-{{this}}-
{{#contentFor "footer"}}
footer-{{this}}
{{/contentFor}}
{{/Layout}}
</template>
<template name="BlockLayoutWithOuterData">
{{#with 'outerData'}}
{{#Layout template="LayoutWithData" data=getData}}
inner-{{this}}
{{/Layout}}
{{/with}}
</template>
<template name="BlockLayoutWithOuterDataAndWith">
{{#with 'outerData'}}
{{#Layout template="LayoutWithWith" data=getData}}
inner-{{this}}
{{/Layout}}
{{/with}}
</template>
<template name="LayoutOne">
layout-
{{> yield}}
{{> yield "footer"}}
</template>
<template name="RenderingTransactionsLayout">
layout-
{{> yield "aside"}}
{{> yield}}
{{> yield "footer"}}
</template>
<template name="LayoutOnePage">
main
{{#contentFor "footer"}}
footer
{{/contentFor}}
</template>
<template name="LayoutWithData">
layout-{{this}}-
{{> yield}}
{{> yield "footer"}}
</template>
<template name="LayoutWithWith">
layout-{{this}}-
{{#with 'innerData'}}
{{> yield}}
{{/with}}
</template>
<template name="LayoutWithHasRegion">
{{#if hasRegion 'test'}}
yes
{{else}}
no
{{/if}}
</template>
<template name="One">
One-{{this}}-
</template>
<template name="OneFoo">
One-{{foo}}-
</template>
<template name="Two">
Two-{{this}}-
</template>
<template name="Aside">
aside
</template>
<template name="Plain">
plain
</template>
<template name="Footer">
footer
</template>