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
现在预编译完的模块需要这样用:
var xtplMod = require('./items.xtpl'); var render= new XTemplateRuntime(xtplMod); render.render({})
我觉得预编译完的模块返回 render 函数就好了,编译好的模块里依赖 runtime,这样使用起来就方便多了
render
The text was updated successfully, but these errors were encountered:
突然想到如果硬编译进去, render 初始化的时候就无法传递配置进去了吧
Sorry, something went wrong.
那 render 的时候传递两个参数进去?
xtplMod.render(options, data)
看起来好像很厉害的样子
No branches or pull requests
现在预编译完的模块需要这样用:
我觉得预编译完的模块返回
render
函数就好了,编译好的模块里依赖 runtime,这样使用起来就方便多了The text was updated successfully, but these errors were encountered: