snitchy-kapla-plugin
v0.0.7
Published
Add prefixes (`$el`, `$ref`) and triggers for Kapla(https://github.com/thierrymichel/kapla) components
Downloads
11
Maintainers
Readme
📈 Snitchy Kapla Plugin
Add prefixes (
$el
,$ref
) and triggers for Kapla components
Usage
import { Application } from 'kapla';
import snitchy from 'snitchy';
import SnitchyKaplaPlugin from 'snitchy-kapla-plugin';
import variables from 'data/variables';
snitchy.load(variables);
const app = Application.start(document.body, undefined, {
snitchy, // Just to be able to `this.snitchy[page || component]` without explicitly importing snitchy inside each component…
});
const snitchyKapla = new SnitchyKaplaPlugin(snitchy);
app.extend(snitchyKapla);
// app load or register…
Feel free to comment , add an issue or submit a pull request…