Recommended way to add a new page to html5 boilerplate project for repeated content

StackOverflow https://stackoverflow.com/questions/16794446

  •  30-05-2022
  •  | 
  •  

Frage

How should I add a new page to a HTML5 Boilerplate project?

The problem is that if I copy a base page, if I change the menu or the layout, then I have to change all the pages containing that layout.

I don't want to use server side includes because I want to host the website on IIS or Apache.

Or I should use HTML5 Boilerplate for SPA only?

War es hilfreich?

Lösung

You can use templates to avoid duplicating content (like a menu for instance). Then you need to “compile” your website, that is to insert the content into the templates.

There are tools like Hammer that help doing this, or you can do it by hand using Mustache or any other template system.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top