This package has been deprecated

Author message:

@tinyhttp/pug deprecated. use app.engine(pug) instead

@tinyhttp/pug
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

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

Package Sidebar

Install

npm i @tinyhttp/pug

Weekly Downloads

1

Version

1.3.3

License

MIT

Unpacked Size

3.52 kB

Total Files

6

Last publish

Collaborators

  • dropthebeatbro