Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hywax/rollup-plugin-handlebarsjs
This plugin uses Handlebars to compile templates.
https://github.com/hywax/rollup-plugin-handlebarsjs
handlebars handlebars-js rollup rollup-plugin
Last synced: 4 months ago
JSON representation
This plugin uses Handlebars to compile templates.
- Host: GitHub
- URL: https://github.com/hywax/rollup-plugin-handlebarsjs
- Owner: hywax
- License: mit
- Created: 2024-08-10T12:00:11.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-28T19:09:00.000Z (4 months ago)
- Last Synced: 2024-10-01T07:03:20.133Z (4 months ago)
- Topics: handlebars, handlebars-js, rollup, rollup-plugin
- Language: JavaScript
- Homepage:
- Size: 1.98 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Rollup plugin Handlebars
This plugin uses Handlebars to compile templates.
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]## ✨ Installation
1. **Add dependency to your project**
```shell
# Using pnpm
pnpm add rollup-plugin-handlebarsjs -D# Using yarn
yarn add rollup-plugin-handlebarsjs -D# Using npm
npm install rollup-plugin-handlebarsjs -D
```2. **Create `shims.d.ts` file**
```typescript
declare module '*.hbs' {
export default function (options: Record): string
}
```## ⚡ Usage
```typescript
import awsomeTemplate from './awsome-template.hbs'const html = awsomeTemplate({ title: 'Hello, world!' })
```## 🏆 Contributors
Here are some ways you can contribute:
- [Open an issue](https://github.com/hywax/rollup-plugin-handlebarsjs/issues/new/choose) to report a bug.
- [Create a pull request](https://github.com/hywax/rollup-plugin-handlebarsjs/compare) to add a new feature or fix a bug.## 📄 License
The Rollup plugin Handlebars is based on open source code, according to [MIT License](LICENSE).
[npm-version-src]: https://img.shields.io/npm/v/rollup-plugin-handlebarsjs/latest.svg?logo=hackthebox&color=4A4DFF&logoColor=fff
[npm-version-href]: https://npmjs.com/package/rollup-plugin-handlebarsjs
[npm-downloads-src]: https://img.shields.io/npm/dm/rollup-plugin-handlebarsjs.svg?colorB=4A4DFF
[npm-downloads-href]: https://npmjs.com/package/rollup-plugin-handlebarsjs
[license-src]: https://img.shields.io/badge/License-MIT-4A4DFF?logo=opensourceinitiative&logoColor=fff
[license-href]: https://npmjs.com/package/rollup-plugin-handlebarsjs