1 | import { Request as ERequest, Response as EResponse } from "express";
|
2 | import Response from "./response";
|
3 | /**
|
4 | * Generate an HTML response using the template engine.
|
5 | */
|
6 | export 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 | }
|