rollup-plugin-handlebarsjs
v1.0.0
Published
This plugin uses Handlebars to compile templates.
Downloads
61
Readme
Rollup plugin Handlebars
This plugin uses Handlebars to compile templates.
✨ Installation
- Add dependency to your project
# Using pnpm
pnpm add rollup-plugin-handlebarsjs -D
# Using yarn
yarn add rollup-plugin-handlebarsjs -D
# Using npm
npm install rollup-plugin-handlebarsjs -D
- Create
shims.d.ts
file
declare module '*.hbs' {
export default function (options: Record<string, any>): string
}
⚡ Usage
import awsomeTemplate from './awsome-template.hbs'
const html = awsomeTemplate({ title: 'Hello, world!' })
🏆 Contributors
Here are some ways you can contribute:
- Open an issue to report a bug.
- Create a pull request to add a new feature or fix a bug.
📄 License
The Rollup plugin Handlebars is based on open source code, according to MIT License.