Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/server.ts>defineLayout

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

Parameters

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

Returns

AsyncLayout<void, T>