Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/view_engine/node_modules/@types/ejs/index.d.ts>render

🚀A Template View Engine for Deno frameworks
Latest
function render
import { render } from "https://deno.land/x/view_engine@v10.6.0/node_modules/@types/ejs/index.d.ts";

Render the given template of ejs.

If you would like to include options but not data, you need to explicitly call this function with data being an empty object or null.

Parameters

template: string
optional
data: Data
optional
opts: Options & { async: false; }

Returns

string

Parameters

template: string
data: Data | undefined
opts: Options & { async: true; }

Returns

Promise<string>

Parameters

template: string
data: Data | undefined
opts: Options & { async?: never; }

Returns

string

Parameters

template: string
optional
data: Data
optional
opts: Options

Returns

string | Promise<string>