{ let scriptID = 'js-header-about'; let images = [ { url: '/campaign/ever-gold/', imgSrc: '/content/revamp/campaign/ever-gold/Navigation%20%281%29.jpg', title: 'EVER GOLD', subtitle: 'Discover our latest campaign', }, { url: '/our-designer', imgSrc: '/product_images/uploaded_images/gina-love-headshot-2.jpg', title: 'MEET OUR CO-FOUNDER AND DESIGNER', subtitle: 'Gina Feldman Love', }, ]; let html = _.template(` <% for (let { imgSrc, url, title, subtitle } of images) { %>
<% } %>`)({images}); document.querySelector('#' + scriptID).outerHTML = html; } //