We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前会直接吃掉异常,返回undefined的content
The text was updated successfully, but these errors were encountered:
能提供具体的错误和可复现代码吗?
Sorry, something went wrong.
@danmin25
let Koa = require('koa'); let xtpl = require('xtpl/lib/koa2'); let path = require('path'); let app = new Koa(); xtpl(app, { views: path.resolve(__dirname) }); app.use(async (ctx) => { ctx.body = await ctx.render('./test', { number: 1 }); }); app.listen(3333);
test.tpl内容为
{{number.noFunc(1)}}
错误在xtpl/lib/koa2, line55 没有处理error,是故意设计成这样的么
xtplRender(filePath, context, option)((e, data) => { content = data; });
No branches or pull requests
目前会直接吃掉异常,返回undefined的content
The text was updated successfully, but these errors were encountered: