Code widget refactor
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user