Home

Awesome

<a href="https://npmjs.com/package/@vituum/vite-plugin-latte"><img src="https://img.shields.io/npm/v/@vituum/vite-plugin-latte.svg" alt="npm package"></a> <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@vituum/vite-plugin-latte.svg" alt="node compatility"></a>

⚡️☕ ViteLatte

import latte from '@vituum/vite-plugin-latte'

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

Basic usage

```html
<!-- index.latte with index.latte.json -->
{$title}

or

<!-- index.json  -->
{
  "template": "path/to/template.latte",
  "title": "Hello world"
}

Requirements