Open
Description
Currently the plugin system and the .bind() method are kaput because they can't alter the functionality of dommit
wholesale. After construction of the Dommit
object, the view has been rendered. Adding a new binding (a common plugin practice) has no effect. The only way to do this is to wrap the dommit()
method. Furthermore, subviews created by each
and other custom bindings have no way of reproducing the same object, which can cause many bugs.
I suggest creating a plugin system that will allow arbitrary bindings before rendering of the view. This could be done like so (a suggestion only):
var view = dommit(state, options).use(onChangePlugin).render('<div on-change="yoyoes"></div>')
Metadata
Assignees
Labels
No labels