# nunjucks-handlebars-template-tag

> Custom nunjucks tag to include handlebar templates

Latest version **1.0.1** (published 2021-04-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install nunjucks-handlebars-template-tag
pnpm add nunjucks-handlebars-template-tag
yarn add nunjucks-handlebars-template-tag
bun add nunjucks-handlebars-template-tag
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-04-09 |
| First published | 2021-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David Hill |
| Maintainers | vidhill |
| Keywords | nunjucks, tag, handlebars |

## Links

- npm: https://www.npmjs.com/package/nunjucks-handlebars-template-tag
- Repository: https://github.com/vidhill/nunjucks-handlebars-template-tag
- Homepage: https://github.com/vidhill/nunjucks-handlebars-template-tag#readme
- Issues: https://github.com/vidhill/nunjucks-handlebars-template-tag/issues
- npm.io page: https://npm.io/package/nunjucks-handlebars-template-tag

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-04-09
- 1.0.0 — 2021-03-14

## README

# nunjucks-handlebars-template-tag
Nunjucks custom tag to include raw handlebar templates from external files

```
$ npm install nunjucks-handlebars-template-tag --save
```

## Setup
```javascript
const nunjucks = require('nunjucks');
const { IncludeHandlebarsTemplate } = require('nunjucks-handlebars-template-tag');

const fileSystem = new nunjucks.FileSystemLoader('views');

const env = new nunjucks.Environment(fileSystem);

env.addExtension('IncludeHandlebarsTemplate', new IncludeHandlebarsTemplate());
```

## Usage

```javascript
  {% includeHandleBarsTemplate "includes/my-template.handlebars" %}
```

### Outputs
```html
<script id="my-template" type="text/x-handlebars-template">
    // raw content of includes/my-template.handlebars
</script>
```
**Note** the `id` of the script matches the filename of the included file, this is by design

---
_Source: https://npm.io/package/nunjucks-handlebars-template-tag · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
