vituum / vite-plugin-liquid

⚡️💧 Vite plugin for LiquidJS, transforms liquid templates into HTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm package node compatility

⚡️💧 ViteLiquid

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

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

Basic usage

<!-- index.liquid with index.liquid.json -->
{{ title }}

or

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

Requirements

About

⚡️💧 Vite plugin for LiquidJS, transforms liquid templates into HTML

License:MIT License


Languages

Language:JavaScript 100.0%