nbbaier-aquadamselfly.web.val.run
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
import { html } from "https://esm.town/v/stevekrouse/html?v=5";
import { Hono } from "npm:hono";
const app = new Hono();
app.get("/", c => {
return c.html(
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/prism.min.js">
</script>
<link href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism.min.css" rel="stylesheet">
</link>
<title>Document</title>
</head>
<body>
<div class="rounded">
<pre class="rounded"><code class="language-html">&lt;h1&gt;hello&lt;/h1&gt;
&lt;h1&gt;hello&lt;/h1&gt;</code></pre>
</div>
</body>
</html>,
);
});
app.get("/not-jsx", c => {
return html(`
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/prism.min.js">
</script>
<link href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism.min.css" rel="stylesheet">
</link>
<title>Document</title>
</head>
<body>
<div class="rounded">
<pre class="rounded"><code class="language-html">&lt;h1&gt;hello&lt;/h1&gt;
&lt;h1&gt;hello&lt;/h1&gt;</code></pre>
</div>
</body>
</html>
`);
});
export default app.fetch;
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
April 26, 2024