<% let footer = locals.footer || {}; let data = {}; if (footer.logo) data.logo = footer.logo; %> <%- include('footer.ejs', {footer: {brand: true, top: true, content: true, bottom: true, ...data}}); %>