浏览代码

添加 TODO 后续实现

James 1 年之前
父节点
当前提交
6fd7bee09e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/main/java/com/jfinal/template/ext/directive/RenderOrElseDirective.java

+ 2 - 0
src/main/java/com/jfinal/template/ext/directive/RenderOrElseDirective.java

@@ -81,6 +81,8 @@ public class RenderOrElseDirective extends Directive {
 		}
 
 		String subFileName = Include.getSubFileName((String)value, parentFileName);
+		// TODO 未考虑模板 source 为 classpath 的情况,也未考虑 baseTemplatePath 参数据,需参考以下代码进行改进
+		//      config.getSourceFactory().getSource(config.getBaseTemplatePath(), subFileName, ...)
 		String enjoyHtmlFilePath = PathKit.getWebRootPath() + subFileName;
 		File enjoyHtmlFile = new File(enjoyHtmlFilePath);
 		if (enjoyHtmlFile.exists()) {