feat: add custom render function support (#30)

This commit is contained in:
Luca Casonato
2021-06-16 19:36:12 +02:00
committed by GitHub
parent 1346105a79
commit 940f34d811
11 changed files with 236 additions and 39 deletions
+4 -2
View File
@@ -1,9 +1,11 @@
import { ServerContext } from "./context.ts";
import { router } from "./deps.ts";
import { ApiRouteModule, PageModule } from "./types.ts";
import { ApiRouteModule, PageModule, RendererModule } from "./types.ts";
export { RenderContext } from "./render.tsx";
export type { RenderFn } from "./render.tsx";
export interface Routes {
pages: Record<string, PageModule | ApiRouteModule>;
pages: Record<string, PageModule | ApiRouteModule | RendererModule>;
baseUrl: string;
}