Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/vituum/vite-plugin-pug

⚡️🐕 Vite plugin for Pug, transforms pug templates into HTML
https://github.com/vituum/vite-plugin-pug

Last synced: about 2 months ago
JSON representation

⚡️🐕 Vite plugin for Pug, transforms pug templates into HTML

Lists

README

        

npm package
node compatility

# ⚡️🐕 VitePug

```js
import pug from '@vituum/vite-plugin-pug'

export default {
plugins: [
pug()
],
build: {
rollupOptions: {
input: ['index.pug.html']
}
}
}
```

* Read the [docs](https://vituum.dev/plugins/pug.html) to learn more about the plugin options.
* Use with [Vituum](https://vituum.dev) to get multi-page support.

## Basic usage

```html

include /path/to/template.pug
```
or
```html

{
"template": "path/to/template.pug",
"title": "Hello world"
}
```

### Requirements

- [Node.js LTS (16.x)](https://nodejs.org/en/download/)
- [Vite](https://vitejs.dev/)