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
rc-tools/lib/server/js2html.js
line - 16 ~ 18 if (fs.existsSync(path.join(cwd, 'examples/template.xtpl'))) { tplName = path.join(cwd, 'examples/template.xtpl'); } 当我想要自定义模板时,翻阅源码发现提供了这么一个方法。然后我在自己项目添加examples/template.xtpl文件后,报错:找不到文件 examples/template.xtpl.xtpl 。可见render时默认添加的后缀.xtpl。故这段代码是否存在问题,我认为应该改为: if (fs.existsSync(path.join(cwd, 'examples/template.xtpl'))) { tplName = path.join(cwd, 'examples/template'); }
if (fs.existsSync(path.join(cwd, 'examples/template.xtpl'))) { tplName = path.join(cwd, 'examples/template.xtpl'); }
if (fs.existsSync(path.join(cwd, 'examples/template.xtpl'))) { tplName = path.join(cwd, 'examples/template'); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
rc-tools/lib/server/js2html.js
line - 16 ~ 18
if (fs.existsSync(path.join(cwd, 'examples/template.xtpl'))) { tplName = path.join(cwd, 'examples/template.xtpl'); }
当我想要自定义模板时,翻阅源码发现提供了这么一个方法。然后我在自己项目添加examples/template.xtpl文件后,报错:找不到文件 examples/template.xtpl.xtpl 。可见render时默认添加的后缀.xtpl。故这段代码是否存在问题,我认为应该改为:
if (fs.existsSync(path.join(cwd, 'examples/template.xtpl'))) { tplName = path.join(cwd, 'examples/template'); }
The text was updated successfully, but these errors were encountered: