ciscoheat / mithril-hx

Haxe externs for Mithril (JS MVC framework)
181 stars 12 forks source link

Does / will this work with mithril@rewrite (1.0)? #29

Closed IBwWG closed 7 years ago

IBwWG commented 7 years ago

If so, is there anything special needed to do so?

ciscoheat commented 7 years ago

This library will also require a rewrite, but I'm working on it! What I have so far is promising, and soon I'll push a rewrite branch which will be compatible with mithril 1.0.

ciscoheat commented 7 years ago

Good news, I have made all the examples working with Mithril 1.0, so this library will compatible. The only difference will be the this reference in lifecycle methods, and view (in other words, all methods taking a vnode as argument). In mithril it will refer to vnode.state, but in Haxe it will refer to vnode.tag, which is the instantiated Haxe object.