Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh/src/server/mod.ts>defineLayout

The next-gen web framework.
Extremely Popular
Go to Latest
function defineLayout
import { defineLayout } from "https://deno.land/x/fresh@1.5.2/src/server/mod.ts";

Parameters

fn: (req: Request, ctx: LayoutContext<void, T>) => ComponentChildren | Response | Promise<ComponentChildren | Response>

Returns

AsyncLayout<void, T>