I'm trying to master Mojito. One thing I don't quite understand is: what is the best way to make use of yui3-widgets?
1) Where to define them? I suppose every view can have an own YUI() sandbox and define them there?
2) How to master data? YUI3-widgets can have their own datasource and render fascility. What is the best approach here? Let handlebars render the DOM and the widget rendered through progressive enhancement? I suppose the datasource facility must be shipped to the Model then.
3) If I'm right about (2): how to deal with a data-update? The controller does rerendering the complete mojit every time? If so, what if you have a widget that can do a partial data-update of its own?
I'm still struggling to figure out the best way. Hope you can put me in the right direction.