应该是问个 html import 之类的问题,有几个公用的 html 内容块,比如说是:
a 块
<div>a 的内容</div>
b 块
<div>b 的内容</div>
c 块
<div>c 的内容</div>
列表页 list.html 右侧要有:
a,b 块
内容页 article.html 右侧要有:
a,c 块
sass 有这样的解决思路的,比如新建一个 _a.sass 和 _b.sass _c.cass ; 当 list.sass import _a.sass 和 _b.sass 他导出 list.css 的时候。把 _a.sass 和 _b.sass 的内容就自动加上了; 同理 article.css 也有了 _a.sass 和 _c.sass 的内容;
html 咋整?有没有这样的工具? webpack ? html 模板引擎? haml ?