HTML

HTML

I have chosen to split all pages into a main part and a content part. This means that the main part is almost identical at every page. This allows me to "reuse" components for each page (header, http header, navigation etc).

1. The main part for the "home" page

<!DOCTYPE html>
<html lang="en">

<head>
  {{template "httphead"}}
</head>

<body data-theme="default" data-main="home"> // The data-main value tells which main menu to use
  {{template "icn"}}
  {{template "nav" "home"}} //<-- calling the navigation menu with a parameter
  <main>
    {{template "header" "Home"}}
    <section>
      {{template "cnt_home" .}}{{template "desk" .}}
    </section>
  </main>
  {{template "httpend"}}
</body>

</html>