Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top