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

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

Minimalist web framework for Deno ported from ExpressJS.
Latest
method Response.prototype.render
import { Response } from "https://deno.land/x/opine@2.3.4/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