MCPcopy Index your code
hub / github.com/tinyhttp/tinyhttp / pug

Function pug

packages/pug/src/index.ts:4–8  ·  view source on GitHub ↗
(options?: Options)

Source from the content-addressed store, hash-verified

2import type { App } from '@tinyhttp/app'
3
4export const pug = (options?: Options) => {
5 return function pug(app: App<Options>) {
6 return app.engine('pug', (path, _, opts, cb) => renderFile(path, options || opts, cb))
7 }
8}

Callers 2

index.jsFile · 0.90
pug.test.tsFile · 0.90

Calls 1

engineMethod · 0.80

Tested by

no test coverage detected