Authored by happyhour7@163.com

mustache模板根据参数进行优化

Showing 40 changed files with 157 additions and 110 deletions
... ... @@ -7,4 +7,18 @@
centerBanner//通栏的结构体
pager //分页结构体
-->
{{> channel/index}}
\ No newline at end of file
{{# contentWithNothing}}
{{> channel/index_with_nothing }}
{{/ contentWithNothing}}
{{# contentWithAdvert}}
{{> channel/index_without_centerbanner}}
{{/ contentWithAdvert}}
{{# contentWithCenterBanner}}
{{> channel/index_without_advert}}
{{/ contentWithCenterBanner}}
{{# contentWithAll}}
{{> channel/index}}
{{/ contentWithAll}}
\ No newline at end of file
... ...
... ... @@ -7,4 +7,18 @@
centerBanner//通栏的结构体
pager //分页结构体
-->
{{> channel/index_hk}}
\ No newline at end of file
{{# contentWithNothing}}
{{> channel/index_with_nothing_hk}}
{{/ contentWithNothing}}
{{# contentWithAdvert}}
{{> channel/index_without_centerbanner_hk}}
{{/ contentWithAdvert}}
{{# contentWithCenterBanner}}
{{> channel/index_without_advert_hk}}
{{/ contentWithCenterBanner}}
{{# contentWithAll}}
{{> channel/index_hk}}
{{/ contentWithAll}}
\ No newline at end of file
... ...
{{> channel/index_with_nothing }}
\ No newline at end of file
{{> channel/index_with_nothing_hk}}
\ No newline at end of file
{{> channel/index_without_advert}}
\ No newline at end of file
{{> channel/index_without_advert_hk}}
\ No newline at end of file
<!--
JSON数据组成说明(有广告无通栏):
topItem1 //广告之前的两个碎片
topItem2 //广告与通栏之间的碎片
advert //广告的结构体
pager //分页结构体
-->
{{> channel/index_without_centerbanner}}
\ No newline at end of file
<!--
JSON数据组成说明(有广告无通栏):
topItem1 //广告之前的两个碎片
topItem2 //广告与通栏之间的碎片
advert //广告的结构体
pager //分页结构体
-->
{{> channel/index_without_centerbanner_hk}}
\ No newline at end of file
... ... @@ -7,6 +7,24 @@
centerBanner//通栏的结构体
pager //分页结构体
-->
{{> channel/index}}
{{# contentWithNothing}}
{{> channel/index_with_nothing }}
{{/ contentWithNothing}}
{{# contentWithAdvert}}
{{> channel/index_without_centerbanner}}
{{/ contentWithAdvert}}
{{# contentWithCenterBanner}}
{{> channel/index_without_advert}}
{{/ contentWithCenterBanner}}
{{# contentWithAll}}
{{> channel/index}}
{{/ contentWithAll}}
... ...
... ... @@ -7,6 +7,23 @@
centerBanner//通栏的结构体
pager //分页结构体
-->
{{> channel/index_hk}}
{{# contentWithNothing}}
{{> channel/index_with_nothing_hk}}
{{/ contentWithNothing}}
{{# contentWithAdvert}}
{{> channel/index_without_centerbanner_hk}}
{{/ contentWithAdvert}}
{{# contentWithCenterBanner}}
{{> channel/index_without_advert_hk}}
{{/ contentWithCenterBanner}}
{{# contentWithAll}}
{{> channel/index_hk}}
{{/ contentWithAll}}
... ...
{{> channel/index_with_nothing }}
\ No newline at end of file
{{> channel/index_with_nothing_hk}}
\ No newline at end of file
{{> channel/index_without_advert}}
\ No newline at end of file
{{> channel/index_without_advert_hk}}
\ No newline at end of file
<!--
JSON数据组成说明(有广告无通栏):
topItem1 //广告之前的两个碎片
topItem2 //广告与通栏之间的碎片
advert //广告的结构体
pager //分页结构体
-->
{{> channel/index_without_centerbanner}}
\ No newline at end of file
<!--
JSON数据组成说明(有广告无通栏):
topItem1 //广告之前的两个碎片
topItem2 //广告与通栏之间的碎片
advert //广告的结构体
pager //分页结构体
-->
{{> channel/index_without_centerbanner_hk}}
\ No newline at end of file
... ... @@ -7,4 +7,18 @@
centerBanner//通栏的结构体
pager //分页结构体
-->
{{> channel/index}}
{{# contentWithNothing}}
{{> channel/index_with_nothing }}
{{/ contentWithNothing}}
{{# contentWithAdvert}}
{{> channel/index_without_centerbanner}}
{{/ contentWithAdvert}}
{{# contentWithCenterBanner}}
{{> channel/index_without_advert}}
{{/ contentWithCenterBanner}}
{{# contentWithAll}}
{{> channel/index}}
{{/ contentWithAll}}
... ...
... ... @@ -7,4 +7,18 @@
centerBanner//通栏的结构体
pager //分页结构体
-->
{{> channel/index_hk}}
{{# contentWithNothing}}
{{> channel/index_with_nothing_hk}}
{{/ contentWithNothing}}
{{# contentWithAdvert}}
{{> channel/index_without_centerbanner_hk}}
{{/ contentWithAdvert}}
{{# contentWithCenterBanner}}
{{> channel/index_without_advert_hk}}
{{/ contentWithCenterBanner}}
{{# contentWithAll}}
{{> channel/index_hk}}
{{/ contentWithAll}}
... ...
{{> channel/index_with_nothing }}
\ No newline at end of file
{{> channel/index_with_nothing_hk}}
\ No newline at end of file
{{> channel/index_without_advert}}
\ No newline at end of file
{{> channel/index_without_advert_hk}}
\ No newline at end of file
<!--
JSON数据组成说明(有广告无通栏):
topItem1 //广告之前的两个碎片
topItem2 //广告与通栏之间的碎片
advert //广告的结构体
pager //分页结构体
-->
{{> channel/index_without_centerbanner}}
\ No newline at end of file
<!--
JSON数据组成说明(有广告无通栏):
topItem1 //广告之前的两个碎片
topItem2 //广告与通栏之间的碎片
advert //广告的结构体
pager //分页结构体
-->
{{> channel/index_without_centerbanner_hk}}
\ No newline at end of file
... ... @@ -7,4 +7,18 @@
centerBanner//通栏的结构体
pager //分页结构体
-->
{{> channel/index}}
{{# contentWithNothing}}
{{> channel/index_with_nothing }}
{{/ contentWithNothing}}
{{# contentWithAdvert}}
{{> channel/index_without_centerbanner}}
{{/ contentWithAdvert}}
{{# contentWithCenterBanner}}
{{> channel/index_without_advert}}
{{/ contentWithCenterBanner}}
{{# contentWithAll}}
{{> channel/index}}
{{/ contentWithAll}}
\ No newline at end of file
... ...
... ... @@ -7,4 +7,18 @@
centerBanner//通栏的结构体
pager //分页结构体
-->
{{> channel/index_hk}}
{{# contentWithNothing}}
{{> channel/index_with_nothing_hk}}
{{/ contentWithNothing}}
{{# contentWithAdvert}}
{{> channel/index_without_centerbanner_hk}}
{{/ contentWithAdvert}}
{{# contentWithCenterBanner}}
{{> channel/index_without_advert_hk}}
{{/ contentWithCenterBanner}}
{{# contentWithAll}}
{{> channel/index_hk}}
{{/ contentWithAll}}
... ...
{{> channel/index_with_nothing }}
\ No newline at end of file
{{> channel/index_with_nothing_hk}}
\ No newline at end of file
{{> channel/index_without_advert}}
\ No newline at end of file
{{> channel/index_without_advert_hk}}
\ No newline at end of file
<!--
JSON数据组成说明(有广告无通栏):
topItem1 //广告之前的两个碎片
topItem2 //广告与通栏之间的碎片
advert //广告的结构体
pager //分页结构体
-->
{{> channel/index_without_centerbanner}}
\ No newline at end of file
<!--
JSON数据组成说明(有广告无通栏):
topItem1 //广告之前的两个碎片
topItem2 //广告与通栏之间的碎片
advert //广告的结构体
pager //分页结构体
-->
{{> channel/index_without_centerbanner_hk}}
\ No newline at end of file
... ... @@ -7,4 +7,18 @@
centerBanner//通栏的结构体
pager //分页结构体
-->
{{> channel/index}}
\ No newline at end of file
{{# contentWithNothing}}
{{> channel/index_with_nothing }}
{{/ contentWithNothing}}
{{# contentWithAdvert}}
{{> channel/index_without_centerbanner}}
{{/ contentWithAdvert}}
{{# contentWithCenterBanner}}
{{> channel/index_without_advert}}
{{/ contentWithCenterBanner}}
{{# contentWithAll}}
{{> channel/index}}
{{/ contentWithAll}}
\ No newline at end of file
... ...
... ... @@ -7,4 +7,18 @@
centerBanner//通栏的结构体
pager //分页结构体
-->
{{> channel/index_hk}}
{{# contentWithNothing}}
{{> channel/index_with_nothing_hk}}
{{/ contentWithNothing}}
{{# contentWithAdvert}}
{{> channel/index_without_centerbanner_hk}}
{{/ contentWithAdvert}}
{{# contentWithCenterBanner}}
{{> channel/index_without_advert_hk}}
{{/ contentWithCenterBanner}}
{{# contentWithAll}}
{{> channel/index_hk}}
{{/ contentWithAll}}
... ...
{{> channel/index_with_nothing }}
\ No newline at end of file
{{> channel/index_with_nothing_hk}}
\ No newline at end of file
{{> channel/index_without_advert}}
\ No newline at end of file
{{> channel/index_without_advert_hk}}
\ No newline at end of file
<!--
JSON数据组成说明(有广告无通栏):
topItem1 //广告之前的两个碎片
topItem2 //广告与通栏之间的碎片
advert //广告的结构体
pager //分页结构体
-->
{{> channel/index_without_centerbanner}}
\ No newline at end of file
<!--
JSON数据组成说明(有广告无通栏):
topItem1 //广告之前的两个碎片
topItem2 //广告与通栏之间的碎片
advert //广告的结构体
pager //分页结构体
-->
{{> channel/index_without_centerbanner_hk}}
\ No newline at end of file