Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ViewEngine

import { ViewEngine } from "https://raw.githubusercontent.com/Caesar2011/denotrain/master/mod.ts";
abstract
abstract class ViewEngine {
constructor(path: string);
protected abstract _render(
template: string,
data: {
[_: string]: any;
}
,
ctx: Context<any, any>,
): Promise<void>;
public async render(
file: string,
data: {
[_: string]: any;
}
,
ctx: Context<any, any>,
): Promise<void>;
}

§Constructors

§
new ViewEngine(path: string)
[src]

§Methods

§
_render(template: string, data: {
[_: string]: any;
}
, ctx: Context<any, any>): Promise<void> abstract protected
[src]
§
render(file: string, data: {
[_: string]: any;
}
, ctx: Context<any, any>): Promise<void>
[src]