Giant code reorganization (#690)

Code restructure
This commit is contained in:
Zef Hemel
2024-02-08 21:00:45 +01:00
committed by GitHub
parent e1ac990de9
commit 60d3199d64
281 changed files with 901 additions and 1192 deletions
+15
View File
@@ -0,0 +1,15 @@
import type { CodeWidgetContent } from "$type/types.ts";
import { syscall } from "../syscall.ts";
export function render(
lang: string,
body: string,
pageName: string,
): Promise<CodeWidgetContent | null> {
return syscall("codeWidget.render", lang, body, pageName);
}
// Refresh all code widgets on the page that support it
export function refreshAll() {
return syscall("codeWidget.refreshAll");
}