wrey75/johannes

Template and contents

Opened this issue · 0 comments

The template is a full theme mustache description. In fact, the template does not define the contents but all the page. In some cases, it is not want we intent. We have to enhance this part of the rendering to be more explicit on what we want to render.

Here a typical template blog.mustache:

{{>header}}
  <div class="row">
    <div class="col-md-9">
      {{>contents}}
    </div>
    <div class="col-md-3">
      {{>sidenav}}
    </div>
  </div>
{{>footer}}

Usually, in all the website (except home page), we have more or less the same with the contents and a sidenav. Of course, the sidenav could be moved to the footer but, in this cas, we have a <div> misplaced in the footer.

Better could be an injection from the theme itself like Spring in JAVA (an inversion of control). This will permit a better approach and a more hierarchic description of the theme.