1
0
silverbullet/plugs/template/index.ts
2023-11-09 09:26:44 +01:00

8 lines
274 B
TypeScript

import type { IndexTreeEvent } from "$sb/app_event.ts";
import { system } from "$sb/syscalls.ts";
export async function indexTemplate({ name, tree }: IndexTreeEvent) {
// Just delegate to the index plug
await system.invokeFunction("index.indexPage", { name, tree });
}