silverbullet/plugs/template/index.ts

8 lines
303 B
TypeScript
Raw Permalink Normal View History

2024-02-29 22:23:05 +08:00
import type { IndexTreeEvent } from "../../plug-api/types.ts";
import { system } from "@silverbulletmd/silverbullet/syscalls";
export async function indexTemplate({ name, tree }: IndexTreeEvent) {
// Just delegate to the index plug
await system.invokeFunction("index.indexPage", { name, tree });
}