silverbullet/plugs/template/index.ts

8 lines
281 B
TypeScript
Raw Normal View History

2024-02-29 22:23:05 +08:00
import type { IndexTreeEvent } from "../../plug-api/types.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 });
}