/
index.html
49 lines (33 loc) · 994 Bytes
/
index.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
45
46
47
48
49
<html>
<head>
<!--<script src="components/underscore/underscore.js"></script>-->
<script type="text/javascript">
curl = {
paths: {
curl: 'components/curl/src/curl/'
},
packages: {
wire: { path: 'components/wire', main: 'wire'},
when: { path: 'components/when/', main: 'when'},
yaap: { path: '../yaap/', main: 'yaap'},
meld: { path: 'components/meld', main: 'meld' },
underscore:{ path: 'components/underscore', main: 'underscore',
config: {moduleLoader: 'curl/loader/cjsm11'}
}
}
};
</script>
</head>
<body>
<script src="components/curl/src/curl.js"></script>
<script type="text/javascript">
curl(['wire!spec']).then(function(ctx){
console.log("----- initialized -----");
ctx.myComponent.doSomething();
ctx.myComponent.doSomethingElseAgain();
},function(err){
console.log("err: " + err);
})
</script>
</body>
</html>