Awesome
<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/@vituum/vite-plugin-handlebars.svg" alt="node compatility"></a>
⚡️💡 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"
}