<script src="matreshka.min.js"></script>
<input type="text" class="my-input">
<script>
var app = new Matreshka;
app.bindNode( 'x', '.my-input' );
app.x = 'Two-way data binding in JS? O rly?';
</script>
Matreshka - is small and powerful client-side JavaScript framework that allows you to build single page applications as simply as possible.
- Two-way data-bindings in JavaScript files. No more {{weird.syntax}} inside HTML.
- It's simple. Really. You don't need to learn mass of articles to get started.
- Custom architecture. You can choose any way how you build an application.
- Fire
remove
andmodify
when data key is removed fromMatreshka.Object
instance (remove
,removeDataKeys
) force
flag forMatreshka.Array
eventsMatreshka#off
for delegated DOM events with specified selector- Refactor
Matreshka#_on
andMatreshka#_off
methods - Remove event after handler call in
Matreshka#once
binder.destroy
member that calls whenMatreshka#unbindNode
is calledprivate
global event flag that makes event to be silent for delegated handlers- Fire
remove
event on data remove forMatreshka.Object
- Export Matreshka using ES6 syntax
Matreshka.to
- converts JS object to Matreshka instance- Some way to get parents from delegated Matreshka events
this.bound.key
instead ofthis.bound('key')
as alternative- Automated testing
- Comment every part of code
- Matreshka.Array.of
- Matreshka.Array.from
getValue
member for one-way data binders fromMatreshka.binders
Maybe will be added in next versions
toJSONString
methodbindSandbox
method which accepts single argument + event options
Author: Andrey Gubanov [email protected]
License: MIT License