riot-mixin-pack
v0.2.0
Published
Useful mixin pack for Riot.js
Downloads
10
Readme
Riot Mixin Pack
This is a series of mixins which make Riot.js more convenient.
Installation
$ npm install --save-dev riot-mixin-pack
Usage
import { domEvent } from 'riot-mixin-pack'
Or, respectively:
import domEvent from 'riot-mixin-pack/dom-event'
For ES5:
var domEvent = require('riot-mixin-pack').domEvent
Then, apply the mixin to the tag: this.mixin(domEvent)
Mixins
See more detail for each mixin:
Development
Each directory has these files:
index.js
: source code of mixinREADME
: description about itspec.js
: test scriptspec.tag
: tag(s) for testing
Some note:
index.js
should be written in ES6.spec.js
andspec.tag
should be written in ES5.- In
spec.tag
, all tags has the prefix. For example:<sync-event-app>
<sync-event-child>
for syncEvent mixin.