Hey Joe,
The core query component only returns a CoreQuery object consisting of
proxied DOM elements that match the given CSS selector. Currently
there is no logic to change from a DOM element into a proxy. However,
the template view does expose the child_views method in which you can
access the button. You simply need to do the following:
button = self.child_views.find_first('SC.ButtonView')
or
button = self.child_views.find_first(ButtonView)
Both work the same way in which it goes through an array to find the
first element that matches the object type.
In general, Lebowski will need to be updated to properly support
template views. The template view and SC.View both have common
functionality, but the template view directly inherits from the
SC.CoreView, not the SC.View. As for accessing child views within a
template view, using the DOM class is suitable, although it would've
been nice if you could also supply an optional localID property to
each child view to make it easier to access them via a simple property
path :).
-Mike