aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/index.html7
-rw-r--r--examples/isRoute.js3
-rw-r--r--examples/src.js11
3 files changed, 0 insertions, 21 deletions
diff --git a/examples/index.html b/examples/index.html
deleted file mode 100644
index 3bb25f55e..000000000
--- a/examples/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <script type="module" src="REPLACE_ME"></script>
- </head>
- <body></body>
-</html>
diff --git a/examples/isRoute.js b/examples/isRoute.js
deleted file mode 100644
index d1717a0e9..000000000
--- a/examples/isRoute.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export function isRoute(expr, env) {
- return env.url.pathname.includes(expr.arguments[0].toString());
-}
diff --git a/examples/src.js b/examples/src.js
deleted file mode 100644
index ad9fda6f4..000000000
--- a/examples/src.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import { getProducts } from "macro:./getProducts.js";
-import { isRoute } from "macro:./isRoute.js";
-
-if (isRoute("/rickroll")) {
- document.body.innerHTML = `<iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>`;
-} else if (isRoute("/products")) {
- const products = getProducts({ ProductName: "name", Id: "id" });
- document.body.innerHTML = `<ul>${products
- .map(({ name, id }) => `<li>${name}</li>`)
- .join("")}</ul>`;
-}