lynx-framework
Version:
lynx is a NodeJS framework for Web Development, based on decorators and the async/await support.
17 lines (16 loc) • 516 B
TypeScript
import { Request as ERequest, Response as EResponse } from "express";
import Response from "./response";
/**
* Generate an HTML response using the template engine.
*/
export default class RenderResponse extends Response {
private view;
private context;
/**
* The constructor
* @param view the path to the view
* @param context the context necessary to generate the template
*/
constructor(view: string, context: any);
performResponse(req: ERequest, res: EResponse): void;
}