jank
v0.2.0
Published
Transform view with data.
Downloads
3
Readme
jank
Jank automatically updates your view when the server says so.
If you're using Jank with Elixir Phoenix, check out phoenix_jank.
Usage
TODO
How it works
The basic premise of Jank is that for simple real-time requirements, you have been writing too much JavaScript. For example, if you want stream chat messages from a websocket into your page, traditionally you must write the code that updates the DOM. With Jank, this process is generalized into a set of transformations.
Jank finds components on your page and subscribes to a data topic. The server sends data along when it's available and Jank integrates it back into the page automatically. Janks plays really nice with the Ratchet data format. All of this is accomplished without the need for complicated front-end JavaScript frameworks. It bolts on to your traditional, server-rendered architecture.
Release
Bump the version in
package.json
.Add version to CHANGELOG.
Commit version with Git tag
vX.X.X
.Publish to npm:
$ npm publish