@tinyhttp/pugdeprecated

Pug wrapped in a helper function for tinyhttp.

Usage no npm install needed!

<script type="module">
  import tinyhttpPug from 'https://cdn.skypack.dev/@tinyhttp/pug';
</script>

README

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