Skip to content

Commit b8ec418

Browse files
committed
chore: update playground
1 parent f17d670 commit b8ec418

File tree

5 files changed

+15
-1
lines changed

5 files changed

+15
-1
lines changed

playground/includes/body.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<body>
2+
<main>
3+
<h2>Playground Body</h2>
4+
</main>
5+
</body>

playground/includes/footer.text

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__UNPLUGIN—FOOTER__

playground/includes/header.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<header>
2+
<h1>Playground Header</h1>
3+
</header>

playground/includes/main.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- #include "./includes/header.html" -->
2+
<!-- #include "./includes/body.html" -->
3+
<!-- #include "./includes/footer.text" -->

playground/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/* eslint-disable no-console */
22
// eslint-disable @typescript-eslint/indent
33
/* prettier-ignore */
4-
document.getElementById('app')!.innerHTML = '__UNPLUGIN__'
4+
document.getElementById('app')!.innerHTML = `
5+
// #include "./includes/main.html"
6+
`
57
// #undef DEV
68
// #error this is an error message
79
// #warning this is a warning message

0 commit comments

Comments
 (0)