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
Sat, Oct 11, 08:51 (16 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
961581
Default Alt Text
html.ts (445 B)

Event Timeline