Skip to main content
Module

x/nat/mod.ts>init

A server side rendering framework for Deno CLI and Deploy. 🦟 🦕
Latest
function init
import { init } from "https://deno.land/x/nat@0.0.2/mod.ts";

Initialize the environment optionally using the provided options, returning an instance of Router.

Example

import { init, render } from "https://deno.land/x/nat/mod.ts";
import { App } from "./App.tsx";

const router = init();
router.get("/", render(<App />));

router.listen();

Parameters

optional
options: StartOptions = [UNSUPPORTED]

Returns

Router