Page MenuHomeSealhub

html.ts
No OneTemporary

import { Context } from "koa";
import { FlatTemplatable } from "tempstream";
import { FormControl } from "./controls";
export class HTML extends FormControl {
role = <const>"decoration";
constructor(public renderer: ((ctx: Context) => FlatTemplatable) | string) {
super();
}
async render(ctx: Context): Promise<FlatTemplatable> {
if (typeof this.renderer === "string") {
return this.renderer;
}
return this.renderer(ctx);
}
}

File Metadata

Mime Type
text/x-java
Expires
Tue, Jun 17, 03:29 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
663331
Default Alt Text
html.ts (445 B)

Event Timeline