snitchy-kapla-plugin

0.0.7 • Public • Published

📈 Snitchy Kapla Plugin

stability-wip NPM version Coverage Status License

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…

Package Sidebar

Install

npm i snitchy-kapla-plugin

Weekly Downloads

1

Version

0.0.7

License

SEE LICENSE IN UNLICENSE

Unpacked Size

76.7 kB

Total Files

7

Last publish

Collaborators

  • thierrymichel