Lines Matching refs:tmpl
47 for (tmpl of root.getElementsByTagName('template'))
48 reinflate(tmpl, data);
56 function inflate(tmpl, data, parent, next) { argument
63 if (tmpl.nodeName != 'TEMPLATE') {
64 let clone = tmpl.cloneNode();
71 for (c of tmpl.childNodes)
77 if ('use' in tmpl.dataset)
78 return inflate(document.getElementById(tmpl.dataset.use), data, parent, next);
81 for (c of tmpl.content.childNodes)
108 for (let [dir, value] of Object.entries(tmpl.dataset).reverse()) {
117 function reinflate(tmpl, data) { argument
119 while (tmpl.nextSibling && tmpl.nextSibling.inflated)
120 tmpl.parentNode.removeChild(tmpl.nextSibling);
121 inflate(tmpl, data, tmpl.parentNode, tmpl.nextSibling);