Module

x/opine/src/response.ts>Response#render

Fast, minimalist web framework for Deno ported from ExpressJS.
Very Popular
Go to Latest
method Response.prototype.render
import { Response } from "https://dotland.deno.dev/x/opine@2.2.0/src/response.ts";

Render view with the given options and optional callback fn. When a callback function is given a response will not be made automatically, otherwise a response of 200 and text/html is given.

Options:

  • cache boolean hinting to the engine it should cache
  • filename filename of the view being rendered

Parameters

view: string
optional
options: any = [UNSUPPORTED]
optional
callback: any