Skip to content

Commit 4209c03

Browse files
committed
Add examples
1 parent 6eee861 commit 4209c03

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

examples/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<!-- For Promise & Reflect.construct -->
6+
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-shim.min.js"></script>
7+
<!-- For CustomEvent -->
8+
<script src="https://unpkg.com/@webcomponents/[email protected]/webcomponents-platform.js"></script>
9+
<!-- For Template -->
10+
<script src="https://unpkg.com/@webcomponents/[email protected]/template.js"></script>
11+
<!-- Fetch -->
12+
<script src="https://cdnjs.cloudflare.com/ajax/libs/fetch/2.0.3/fetch.min.js"></script>
13+
<!-- HTML Import & Custom Elements -->
14+
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.22/webcomponents-hi-ce.js"></script>
15+
<script src="../dist/index-umd.js"></script>
16+
<title>include-fragment demo</title>
17+
</head>
18+
<body>
19+
<include-fragment src="./pull.html">Loading</include-fragment>
20+
</body>
21+
</html>

examples/pull.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<b>Works.</b>

0 commit comments

Comments
 (0)