-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-bundle.html
More file actions
38 lines (30 loc) · 923 Bytes
/
example-bundle.html
File metadata and controls
38 lines (30 loc) · 923 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>systemjs/builder LESS pulgin example</title>
<script src="jspm_packages/system.src.js"></script>
<script>
System.config({
bundles: {
"example/app-bundle.js": ['example/app.js']
}
});
System.import('example/app.js')
.then(function (m) {
console.log(m.message);
document.getElementById("placeholder").innerHTML = m.template;
})
.catch(function(err) {
console.log(err);
});
</script>
</head>
<body>
<div id="placeholder">[To be replaced with template]</div>
<div class="blue">I'm blue</div>
<div class="green">I'm green</div>
<div class="red">I'm red</div>
</body>
</html>