@vituum/vite-plugin-nunjucks
v1.1.0
Published
<a href="https://npmjs.com/package/@vituum/vite-plugin-nunjucks"><img src="https://img.shields.io/npm/v/@vituum/vite-plugin-nunjucks.svg" alt="npm package"></a> <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@vituu
Downloads
255
Readme
⚡💡️ ViteNunjucks
import nunjucks from '@vituum/vite-plugin-nunjucks'
export default {
plugins: [
nunjucks()
],
build: {
rollupOptions: {
input: ['index.njk.html']
}
}
}
Basic usage
or
<!-- index.njk with index.njk.json -->
{{ title }}
or
<!-- index.json -->
{
"template": "path/to/template.njk",
"title": "Hello world"
}