<%#
# paramètres header

* header (object, required) : Paramètres du template
  ** header.body (object, required) : Paramètres du template body
  ** header.menu (object, optional) : Paramètres du template menu

Exemple complet :

header = {
  body: {
    brand: {
      logo: { voir logo },
      operator: {
	src: 'url de l'img',
	alt: 'texte alternatif',
	style: ''
      },
      service: {
	title: '',
	tagline: ''
      },
    },
    tools: {
      links: {
	items: [
	  { voir buttonsGroup dans button }
	]
      },
      search: {
        id: '',
        modalId: '',
        btnId: '',
        sample: '',
      }
    },
  }
  menu: {
    id: '', // id du bouton du menu
    modalId: '', // id de la modale de menu
    navigation: {
      id: '', // id de la navigation
      + voir composant navigation
    },
    tools: {
      links: [],
      duplicateLinks: false
    }
  }
}
%>
<% eval(include('../../../../../core/index.ejs')); %>
<% let header = locals.header || {body:{}, menu: {}};
if (header.menu.tools && header.menu.tools.duplicateLinks) {
  header.menu.tools.links = header.body.tools.links;
}
if (header.menu.modalId && header.menu.id) {
  header.body.brand.navbar.menu = header.menu;
}
if (header.body.tools && header.body.tools.search && header.body.tools.search.modalId && header.body.tools.search.id) {
  header.body.brand.navbar.search = header.body.tools.search;
}
if (header.menu.navigation && header.menu.modalId) {
  header.menu.navigation.modalId = header.menu.modalId;
}
%>

<header role="banner" class="<%= prefix %>-header">
  <%- include('./body', {body: header.body});%>
  <% if ((header.menu.navigation && header.body.brand.navbar) || (header.body.tools && header.body.tools.links)) { %>
    <%- include('./menu', {menu: header.menu});%>
  <% } %>
</header>
