1

我应该如何向 HTML5 Boilerplate 项目添加新页面?

问题是如果我复制一个基本页面,如果我更改菜单或布局,那么我必须更改包含该布局的所有页面。

我不想使用服务器端包含,因为我想在 IIS 或 Apache 上托管网站。

或者我应该只为 SPA 使用 HTML5 样板?

4

1 回答 1

1

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.

于 2013-05-29T03:11:24.453 回答