StinkyKids

博客园 首页 联系 订阅 管理

每个页面都是相同的页面,没有必要在都写一遍,所以操作如下:

在view/public/header.html

打开header.html写公共的内容,写完保存。

在模板中引入,代码如下:

 1 {include file="public/header"} 

public代表文件夹名称

header代表公共的内容

posted on 2017-04-10 16:42  StinkyKids  阅读(136)  评论(0编辑  收藏  举报