Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method Router.url
Re-export
import { Router } from "https://deno.land/x/ptero@3.0/Ptero/deps.ts";

Generate a URL pathname based on the provided path, interpolating the optional params provided. Also accepts an optional set of options.

Parameters

path: string
optional
params: RouteParams
optional
options: UrlOptions

Returns

string