Open zhangzhanhe opened 6 years ago
最近在用koa2和xtpl,但发现用include的时候达不到效果,也看不到什么报错信息,用法很简单,只是简单的{{include ("sub.xtpl") }},子sub.xtpl也存在。
找到原因了,写成{{include ("./sub.xtpl") }}就好了
最近在用koa2和xtpl,但发现用include的时候达不到效果,也看不到什么报错信息,用法很简单,只是简单的{{include ("sub.xtpl") }},子sub.xtpl也存在。