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