UNPKG

@foxify/http

Version:
18 lines 485 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path_1 = require("path"); class Engine { _ext; _handler; _path; constructor(path, ext, handler) { this._path = path; this._ext = ext; this._handler = handler; } render(filename, opts = {}, cb) { this._handler((0, path_1.join)(this._path, `${filename}.${this._ext}`), opts, cb); } } exports.default = Engine; //# sourceMappingURL=Engine.js.map