-
Notifications
You must be signed in to change notification settings - Fork 164
/
index.stache
47 lines (44 loc) · 1.37 KB
/
index.stache
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
<html>
<head>
<title>{{title}}</title>
<meta name="viewport" content="minimal-ui, width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>
<body>
<can-import from="place-my-order-assets" />
<can-import from="place-my-order/styles.less" />
<can-import from="place-my-order/app" export-as="viewModel" />
<can-import from="place-my-order/loading.component" />
<can-import from="place-my-order/header.component" />
<pmo-header {page}="page"/>
{{#switch page}}
{{#case "home"}}
<can-import from="place-my-order/home.component"
can-tag="pmo-loading">
<pmo-home/>
</can-import>
{{/case}}
{{#case "restaurants"}}
<can-import from="place-my-order/restaurant/list/"
can-tag="pmo-loading">
<pmo-restaurant-list/>
</can-import>
{{/case}}
{{#case "order-history"}}
<can-import from="place-my-order/order/history.component"
can-tag="pmo-loading">
<pmo-order-history/>
</can-import>
{{/case}}
{{/switch}}
{{#switch env.NODE_ENV}}
{{#case "production"}}
<script
src="{{joinBase 'steal.production.js'}}">
</script>
{{/case}}
{{#default}}
<script src="/node_modules/steal/steal.js"></script>
{{/default}}
{{/switch}}
</body>
</html>