forked from riot/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (32 loc) · 989 Bytes
/
index.html
File metadata and controls
39 lines (32 loc) · 989 Bytes
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
<!doctype html>
<html>
<head>
<title>Riot Router: Complex example</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--[if IE]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5-history-api/4.2.4/history.min.js"></script>
<![endif]-->
</head>
<body>
<app-main></app-main>
<app-navi></app-navi>
<app-help></app-help>
<!-- riot tags -->
<script type="riot/tag" src="app-main.tag"></script>
<script type="riot/tag" src="app-navi.tag"></script>
<script type="riot/tag" src="app-help.tag"></script>
<!-- scripts we need -->
<script src="https://rawgit.com/riot/riot/master/riot%2Bcompiler.min.js"></script>
<script src="https://rawgit.com/riot/route/master/dist/route.min.js"></script>
<!-- mount this app -->
<script>
riot.compile(function() {
riot.mount('*')
route.start(true)
})
</script>
<style>
body { margin: 0 }
</style>
</body>
</html>