import { type Plugin } from "https://deno.land/x/fresh@1.1.4/src/server/mod.ts";
Methods
optional
render(ctx: PluginRenderContext): PluginRenderResultThe render hook is called on the server every time some JSX needs to
be turned into HTML. The render hook needs to call the ctx.render
function exactly once.
The hook can return a PluginRenderResult
object that can do things like
inject CSS into the page, or load additional JS files on the client.