summaryrefslogtreecommitdiff
path: root/examples/non-html-pages/src/pages/index.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/non-html-pages/src/pages/index.astro')
-rw-r--r--examples/non-html-pages/src/pages/index.astro22
1 files changed, 0 insertions, 22 deletions
diff --git a/examples/non-html-pages/src/pages/index.astro b/examples/non-html-pages/src/pages/index.astro
deleted file mode 100644
index 921400acd..000000000
--- a/examples/non-html-pages/src/pages/index.astro
+++ /dev/null
@@ -1,22 +0,0 @@
-<html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width" />
- <meta name="generator" content={Astro.generator} />
- <title>Astro</title>
- </head>
- <body>
- <h1 id="result">Loading...</h1>
- <script>
- // Non-HTML files will be included in your final build, so you
- // can fetch them directly in the browser.
- const response = await fetch(`/about.json`);
- const data = await response.json();
- const resultHeader = document.getElementById('result');
-
- if (resultHeader) {
- resultHeader.innerHTML = `Load complete!<br/>Built with: <a href="${data.url}">${data.name}!</a>`;
- }
- </script>
- </body>
-</html>