17 lines
383 B
TypeScript
17 lines
383 B
TypeScript
import { Context } from "sealious";
|
|
|
|
export default async function html(
|
|
context: Context,
|
|
body: string
|
|
): Promise<string> {
|
|
return /* 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>`;
|
|
}
|