Renders a template that is bound to the given data and parented to the elements included in the QueryCollection. If the QueryCollection contains multiple elements, the template is rendered multiple times, once at each element in the QueryCollection per item of data passed.
var queryCollection = queryCollection.template(templateElement, data, renderDonePromiseCallback);
The DOM element to which the template control is attached.
The data to render. If the data is an array (or any other object that has a forEach method) then the template is rendered multiple times, once for each item in the collection.
If supplied, this function is called each time the template gets rendered, and is passed a promise that is fulfilled when the template rendering is complete.
Minimum WinJS version