1
0
silverbullet/plug-api/silverbullet-syscall/handlebars.ts
Zef Hemel 0313565610
Complete redo of content indexing and querying (#517)
Complete redo of data store
Introduces live queries and live templates
2023-10-03 14:16:33 +02:00

17 lines
341 B
TypeScript

import { syscall } from "$sb/silverbullet-syscall/syscall.ts";
/**
* Renders
* @param template
* @param obj
* @param globals
* @returns
*/
export function renderTemplate(
template: string,
obj: any,
globals: Record<string, any> = {},
): Promise<string> {
return syscall("handlebars.renderTemplate", template, obj, globals);
}