Skip to content

vituum/vite-plugin-handlebars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

⚡️💡 Vite plugin for Handlebars, transforms hbs templates into HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published