-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (24 loc) · 905 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
<!DOCTYPE html>
<head>
<script defer src="/why.js"></script>
</head>
<body>
<!-- component folder is "/components/" by default, but can be set in why.js by changing (componentsDirectory) -->
<!-- HTML component in /components/another-directory/some-compenent.html -->
<y-component some-component src="another-directory/some-component">
</y-component>
<hr />
<!-- markdown component in /components/-->
<y-component markdown-component markdown src="markdown-component">
</y-component>
<hr />
<!-- if there's no src, whatever is inside the tag is used as the component -->
<y-component another-markdown-component markdown>
# this will be rendered
</y-component>
<hr />
<!-- if not, then whatever is inside the tag replaces [y-data] in component file -->
<y-component some-component src="another-directory/some-component">
from outside!
</y-component>
</body>