Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1023 Bytes

README.md

File metadata and controls

42 lines (34 loc) · 1023 Bytes

npm package node compatility

⚡️💡 ViteHandlebars

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

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

Basic usage

<!-- index.hbs -->
{{> "path/to/template.hbs"}}

or

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

Requirements