@tinyhttp/pug

npm (scoped) npm

Pug wrapped in a helper function for tinyhttp.

Install

pnpm i @tinyhttp/pug

Example

import { App } from '@tinyhttp/app'
import { pug } from '@tinyhttp/pug'

const app = new App()

pug(/* Pug options */)(app)

app.get((req, res) => void res.render('index.pug')).listen(3000)

License

MIT © v1rtl

Install

pnpm i @tinyhttp/pug

Version

0.5.35

Source

packages/pug