Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vituum/vite-plugin-liquid

⚡️💧 Vite plugin for LiquidJS, transforms liquid templates into HTML
https://github.com/vituum/vite-plugin-liquid

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

npm package
node compatility

# ⚡️💧 ViteLiquid

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

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

* Read the [docs](https://vituum.dev/plugins/liquid.html) to learn more about the plugin options.
* Use with [Vituum](https://vituum.dev) to get multi-page support.

## Basic usage

```html

{{ title }}
```
or
```html

{
"template": "path/to/template.liquid",
"title": "Hello world"
}
```

### Requirements

- [Node.js LTS (16.x)](https://nodejs.org/en/download/)
- [Vite](https://vitejs.dev/)