Re:Break Apart Your Backbone.js Render Methods
by danso on Tuesday August 28, 2012 @05:58PM
(#4446098)
This is the problem I run into every app I make...when I try subviews I usually end up giving up out of annoyance at the complexity
Re:Break Apart Your Backbone.js Render Methods
by ianstormtaylor on Tuesday August 28, 2012 @06:05PM
(#4446124)
Dunno if it will help, but I wrote earlier about how I handle rendering subviews: http://ianstormtaylor.com/rendering-views-in-backbonejs-isnt...
You can probably argue both ways though, I used to have labels be their own view actually. It just got a bit more uselessly complicated for so little benefit.
If the view you're dealing with is an end node in the view hierarchy (and it's pieces are relatively simple) then I prefer not to split them up because there are costs there as well.