@vituum/vite-plugin-handlebars
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @vituum/vite-plugin-handlebars

Weekly Downloads

404

Version

1.1.0

License

none

Unpacked Size

9.12 kB

Total Files

5

Last publish

Collaborators

  • evromalarkey