11 lines
267 B
TypeScript
11 lines
267 B
TypeScript
|
import type { CodeWidgetContent } from "$sb/types.ts";
|
||
|
import { syscall } from "./syscall.ts";
|
||
|
|
||
|
export function render(
|
||
|
lang: string,
|
||
|
body: string,
|
||
|
pageName: string,
|
||
|
): Promise<CodeWidgetContent> {
|
||
|
return syscall("codeWidget.render", lang, body, pageName);
|
||
|
}
|