Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.06 KB

README.md

File metadata and controls

44 lines (36 loc) · 1.06 KB

npm package node compatility

⚡️☕ ViteLatte

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

export default {
    plugins: [
        latte()
    ],
    build: {
        rollupOptions: {
            input: ['index.latte.html']
        }
    }
}
  • Read the docs to learn more about the plugin options.
  • Use with Vituum to get multi-page support.

Basic usage

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

or

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

Requirements