8 lines
274 B
TypeScript
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 });
|
||
|
}
|