1
2
3
4
5
6
7
8
9
10
11
12
import enhance from "jsr:@enhance/ssr";
export default async function() {
let html = enhance({
elements: {
"my-tag": function({ html }) {
return html`<b><slot></slot></b>`;
},
},
});
return new Response(html`<my-tag>my content</my-tag>`, { headers: { "content-type": "text/html" } });
}