class="description"></div> </template> <div id="container"></div> <script> var data = [ { screen_name: 'twitter', description: 'official account' }, { screen_name: 'scala_lang', description: 'The Scala Programming Language.' }, ] var template = document.querySelector('#twitter‐template').content; for (var account of data) { var clone = template.cloneNode(true); for (var key in account) { clone.querySelector(`.${key}`).textContent = account[key]; } document.querySelector('#container').appendChild(clone); } </script> 10