-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
44 lines (39 loc) · 1.06 KB
/
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
<head>
<title>test</title>
</head>
<template name="AppLayout">
{{#famousContext id="mainCtx"}}
{{#Surface}}
<a href="/">Home</a>
<a href="/section">Section</a>
{{/Surface}}
{{#ContainerSurface translate='[0, 50, 0]'}}
{{> yield}}
{{/ContainerSurface}}
{{/famousContext}}
</template>
<template name="AppIndex">
{{#Surface}}
<p>AppIndex</p>
{{/Surface}}
</template>
<template name="AppSection">
{{#ContainerSurface}}
{{#Scrollview}}
{{#famousEach items}}
{{#ContainerSurface size='[undefined, 15]'}}
{{>ContainerSurface size='[undefined, 15]' template='AppSectionItem'}}
{{/ContainerSurface}}
{{/famousEach}}
{{/Scrollview}}
{{/ContainerSurface}}
</template>
<template name='AppSectionItem'>
{{#StateModifier size=reactiveSize origin='[.5, 0]' align='[.5, 0]' id='container_me'}}
{{#ContainerSurface}}
{{#Surface class='left' size='[25, 55]' origin='[0, 0]' align='[0, 0]' }}
<p>{{name}}</p>
{{/Surface}}
{{/ContainerSurface}}
{{/StateModifier}}
</template>