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: 5 months ago
JSON representation
⚡️🐕 Vite plugin for Pug, transforms pug templates into HTML
- Host: GitHub
- URL: https://github.com/vituum/vite-plugin-pug
- Owner: vituum
- License: mit
- Created: 2022-08-24T09:27:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-17T11:47:29.000Z (over 1 year ago)
- Last Synced: 2024-09-19T00:26:07.652Z (7 months ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-vite - @vituum/vite-plugin-pug - Pug template engine support, transforms `.pug` templates to `.html`. (Plugins / Framework-agnostic Plugins)
- awesome-vite - @vituum/vite-plugin-pug - Pug template engine support, transforms `.pug` templates to `.html`. (Plugins / Framework-agnostic Plugins)
README
# ⚡️🐕 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/)