diff options
author | 2022-05-16 19:02:38 -0700 | |
---|---|---|
committer | 2022-05-16 19:02:38 -0700 | |
commit | aed5e39f4d90b670eaf8587c14a0c48d9671aae8 (patch) | |
tree | 492b0155b250b40a84d3916d0f4ea86e138d21c9 /examples/src.js | |
parent | bd1e64b9b1c5bbbd14893eca2e2508fc8deefd22 (diff) | |
download | bun-aed5e39f4d90b670eaf8587c14a0c48d9671aae8.tar.gz bun-aed5e39f4d90b670eaf8587c14a0c48d9671aae8.tar.zst bun-aed5e39f4d90b670eaf8587c14a0c48d9671aae8.zip |
remove bad examples
Diffstat (limited to 'examples/src.js')
-rw-r--r-- | examples/src.js | 11 |
1 files changed, 0 insertions, 11 deletions
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>`; -} |