-
Notifications
You must be signed in to change notification settings - Fork 164
/
index.stache
43 lines (41 loc) · 1.12 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
<html>
<head>
<title>{{title}}</title>
</head>
<body>
<can-import from="bootstrap/less/bootstrap.less" />
<can-import from="donejs-chat/styles.less" />
<can-import from="donejs-chat/app" export-as="viewModel" />
<div class="container">
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
{{#eq page 'chat'}}
<can-import from="donejs-chat/messages/">
{{#if isPending}}
Loading...
{{else}}
<chat-messages/>
{{/if}}
</can-import>
{{else}}
<can-import from="donejs-chat/home.component">
{{#if isPending}}
Loading...
{{else}}
<chat-home/>
{{/if}}
</can-import>
{{/eq}}
</div>
</div>
</div>
{{#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>