Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexandremasy/spices-ginger-head


https://github.com/alexandremasy/spices-ginger-head

Last synced: 43 minutes ago
JSON representation

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