This commit is contained in:
2026-03-19 14:27:41 -05:00
parent 507caba410
commit 7641641ccd
4 changed files with 32 additions and 4 deletions

View File

@@ -3,12 +3,17 @@ import { Page } from "./page";
export type Template = {
name:string;
render:(p:{
page:Page;
request:Request;
language:Language;
}) => Promise<string>;
}
export const templateRender = async (p:{
export const templateRender = (p:{
page:Page,
template:Template,
request:Request
}):Promise<string> => {
return 'template';
return p.template.render(p);
}