Skip to content

⚡️☕ Vite plugin for Latte, transforms latte templates via php into HTML

Notifications You must be signed in to change notification settings

vituum/vite-plugin-latte

Repository files navigation

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

About

⚡️☕ Vite plugin for Latte, transforms latte templates via php into HTML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published