2018-06-26 10:03
有两种办法,一个是使用“原样输出指令”:
#[[#]]#include("/template/common/layout/_page_layout.html")
另一个是使用输出指令:
#("#")include("/template/common/layout/_page_layout.html")
当然,如果你希望更美观的话,可以有多种调整方式:
#[[
#include("/template/common/layout/_page_layout.html")
]]#
#("#include")("/template/common/layout/_page_layout.html")
建议使用“原样输出指令”:
#[[ ]]#
2018-06-25 18:06
@溪碧旗 如果你一定要使用位运算,可以通过 shared method shared object 或者 Driective 等扩展方式,模板里头将参数传入,后端在 java 里完成