https://github.com/vituum/vite-plugin-latte
⚡️☕ Vite plugin for Latte, transforms latte templates via php into HTML
https://github.com/vituum/vite-plugin-latte
Last synced: about 2 months ago
JSON representation
⚡️☕ Vite plugin for Latte, transforms latte templates via php into HTML
- Host: GitHub
- URL: https://github.com/vituum/vite-plugin-latte
- Owner: vituum
- Created: 2022-06-10T19:28:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-25T10:07:49.000Z (5 months ago)
- Last Synced: 2025-02-22T23:31:24.377Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- fucking-awesome-vite - @vituum/vite-plugin-latte - Latte template engine support, transforms `.latte` templates to `.html`. (Plugins / Framework-agnostic Plugins)
- awesome-vite - @vituum/vite-plugin-latte - Latte template engine support, transforms `.latte` templates to `.html`. (Plugins / Framework-agnostic Plugins)
README
# ⚡️☕ ViteLatte
```js
import latte from '@vituum/vite-plugin-latte'export default {
plugins: [
latte()
],
build: {
rollupOptions: {
input: ['index.latte.html']
}
}
}
```* Read the [docs](https://vituum.dev/plugins/latte.html) to learn more about the plugin options.
* Use with [Vituum](https://vituum.dev) to get multi-page support.## Basic usage
```html
```html{$title}
```
or
```html{
"template": "path/to/template.latte",
"title": "Hello world"
}
```### Requirements
- [Node.js LTS (16.x)](https://nodejs.org/en/download/)
- [PHP (8.x)](https://www.php.net/) or [Docker PHP (8.x)](https://hub.docker.com/_/php)
- [Vite](https://vitejs.dev/)