xtemplate / xtpl

nodejs wrapper around xtemplate engine (easier for expressjs and koajs)
MIT License
100 stars 25 forks source link

koa2支持include语法吗? #19

Open zhangzhanhe opened 6 years ago

zhangzhanhe commented 6 years ago

最近在用koa2和xtpl,但发现用include的时候达不到效果,也看不到什么报错信息,用法很简单,只是简单的{{include ("sub.xtpl") }},子sub.xtpl也存在。

zhangzhanhe commented 6 years ago

找到原因了,写成{{include ("./sub.xtpl") }}就好了