Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandremasy/spices-ginger-head
https://github.com/alexandremasy/spices-ginger-head
Last synced: 43 minutes ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexandremasy/spices-ginger-head
- Owner: alexandremasy
- License: mit
- Created: 2021-10-04T06:02:31.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-04T06:02:58.000Z (about 3 years ago)
- Last Synced: 2024-11-06T19:55:50.666Z (about 2 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# Ginger Head Plugin
Allows the alteration of the HTML header directly from the ginger views.
e.g. Change the title of the document based on dynamically loaded data## Setup
1. Install the plugin
```
yarn add @spices/ginger-head
```2. Declare the plugin
```
import { GingerHeadPlugin } from '@spices/ginger-head'let opts = {
key: 'ABC'
}app.use(VueGinger, {
plugins: [{ optins: opts, plugin: GingerHeadPlugin }]
})
```## Configuration
## Declare head from the view
## Trigger an update from a view