No longer index templates tagged as #template

This commit is contained in:
Zef Hemel
2023-11-09 09:26:44 +01:00
parent 366b2ed395
commit d58db6aa1a
19 changed files with 307 additions and 64 deletions
+24
View File
@@ -0,0 +1,24 @@
import type { PageMeta } from "$sb/types.ts";
import { system } from "../../plug-api/syscalls.ts";
export function renderTemplate(
templateText: string,
pageMeta: PageMeta,
data: any = {},
): Promise<string> {
return system.invokeFunction(
"template.renderTemplate",
templateText,
pageMeta,
data,
);
}
export function cleanTemplate(
templateText: string,
): Promise<string> {
return system.invokeFunction(
"template.cleanTemplate",
templateText,
);
}