forked from jupiterjs/jquerymx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroute.html
More file actions
34 lines (33 loc) · 801 Bytes
/
route.html
File metadata and controls
34 lines (33 loc) · 801 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>route</title>
<style type='text/css'>
body {font-family: verdana}
.error {border: solid 1px red;}
.error_text { color: red; font-size: 10px;}
td {padding: 3px;}
</style>
</head>
<body>
<h1>route Demo</h1>
<a href="#!foo/bar">foo/bar</a>
<a href="#!">empty</a>
<script type='text/javascript'
src='../../../steal/steal.js'>
</script>
<script type='text/javascript'>
steal('jquery/controller/route', function(){
$.Controller("Router",{
"foo/:bar route" : function(){
console.log("foo/:bar")
},
"route" : function(){
console.log("route")
}
})
new Router(window)
})
</script>
</body>
</html>