Page MenuHomeSealhub

html.ts
No OneTemporary

import { Templatable, tempstream } from "tempstream";
import { Readable } from "stream";
import { BaseContext } from "koa";
export default function html(ctx: BaseContext, body: Templatable): Readable {
ctx.set("content-type", "text/html;charset=utf-8");
return tempstream/* HTML */ ` <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<script src="/dist/bundle.js"></script>
</head>
<link href="/style.css" rel="stylesheet" type="text/css" />
${body}
</html>`;
}

File Metadata

Mime Type
text/html
Expires
Sat, Nov 8, 07:04 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1034257
Default Alt Text
html.ts (523 B)

Event Timeline