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