1
0
silverbullet/plugs/template/index.ts

8 lines
274 B
TypeScript
Raw Normal View History

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 });
}