@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'

pug(/* Pug options */)(new App())
  .get((req, res) => res.render('index.pug'))
  .listen(3000)

Install

pnpm i @tinyhttp/pug

Version

1.0.18

Source

packages/pug