UNPKG

516 BTypeScriptView Raw
1import { Request as ERequest, Response as EResponse } from "express";
2import Response from "./response";
3/**
4 * Generate an HTML response using the template engine.
5 */
6export default class RenderResponse extends Response {
7 private view;
8 private context;
9 /**
10 * The constructor
11 * @param view the path to the view
12 * @param context the context necessary to generate the template
13 */
14 constructor(view: string, context: any);
15 performResponse(req: ERequest, res: EResponse): void;
16}