Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ara-framework/hypernova-handlebars-directive
Hypernova Directive for Handlebars.
https://github.com/ara-framework/hypernova-handlebars-directive
Last synced: 4 days ago
JSON representation
Hypernova Directive for Handlebars.
- Host: GitHub
- URL: https://github.com/ara-framework/hypernova-handlebars-directive
- Owner: ara-framework
- License: mit
- Created: 2019-06-07T18:34:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-02T05:55:21.000Z (over 3 years ago)
- Last Synced: 2023-03-02T22:50:54.588Z (almost 2 years ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/hypernova-handlebars-directive
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hypernova Handlebars Directive
> Hypernova Directive for Handlebars
This directive enables you render a Hypernova placeholder for [Nova Proxy](https://github.com/ara-framework/nova-proxy) using [Handlerbars Partials](https://handlebarsjs.com/#partials)
## Installation
You can install the package from npm.
```bash
npm i --save hypernova-handlebars-directive
```## Setup
You need to register the partial first using the helper function provided.
```js
const hbs = require('hbs');
const directive = require('hypernova-handlebars-directive');directive(hbs)
```## Usage
You need to provide a `name` attribute in the expression at least.Also you can provide the data passing a variable on the `data` attribute or using a attribute with the follow convention `data-` to set a individual value.
```
{{>nova name="Navbar" data=data data-brand="Ara Framework" }}
```