MCPcopy
hub / github.com/tinyhttp/tinyhttp / engine

Method engine

packages/app/src/app.ts:226–230  ·  view source on GitHub ↗

* Register a template engine with extension

(ext: string, fn: TemplateFunc<RenderOptions>)

Source from the content-addressed store, hash-verified

224 * Register a template engine with extension
225 */
226 engine(ext: string, fn: TemplateFunc<RenderOptions>) {
227 this.engines[ext] = fn
228
229 return this
230 }
231
232 route(path: string): App {
233 const app = new App()

Callers 5

pugFunction · 0.80
index.jsFile · 0.80
index.tsFile · 0.80
server.tsFile · 0.80
app.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected