in firestore/scripts/FriendlyEats.View.js [368:381]
FriendlyEats.prototype.renderTemplate = function(id, data) {
var template = this.templates[id];
var el = template.cloneNode(true);
el.removeAttribute('hidden');
this.render(el, data);
// set an id in case we need to access the element later
if (data && data['.id']) {
// for `querySelector` to work, ids must start with a string
el.id = this.ID_CONSTANT + data['.id'];
}
return el;
};