derickbailey/backbone.marionette — pull request #136 by ClemensSchneider (2012-06-11 07:42:27+00:00)
Title: adds 'renderData' function to ItemView (both regular and async)

This pull request adds another function 'renderData' to ItemView that, per default, calls getTemplate() and renders this template and the data passed in as parameter using Marionette.Renderer.

The intention behind this additional indirection is, that it may be overridden by framework users to take advantage of the events being triggered in 'render' but still provide custom-logic to
render the data provided (e.g. not using templates at all and creating small chunks of DOM-elements on-the-fly).

I think this is quite similar to the previously existing 'renderHtml' function which was removed.
In my opinion it would be nice to provide this hook in ItemView.