浏览代码

Merge branch 'master' into jfinal-java8

James 8 年之前
父节点
当前提交
f1cf400585
共有 1 个文件被更改,包括 8 次插入7 次删除
  1. 8 7
      src/main/java/com/jfinal/template/Engine.java

+ 8 - 7
src/main/java/com/jfinal/template/Engine.java

@@ -162,6 +162,13 @@ public class Engine {
 	
 	/**
 	 * Get template by string content and do not cache the template
+	 */
+	public Template getTemplateByString(String content) {
+		return getTemplateByString(content, false);
+	}
+	
+	/**
+	 * Get template by string content
 	 * 
 	 * 重要:StringSource 中的 key = HashKit.md5(content),也即 key
 	 *     与 content 有紧密的对应关系,当 content 发生变化时 key 值也相应变化
@@ -170,13 +177,7 @@ public class Engine {
 	 *     
 	 *     当 getTemplateByString(String, boolean) 中的 String 参数的
 	 *     数量可控并且确定时,才可对其使用缓存 
-	 */
-	public Template getTemplateByString(String content) {
-		return getTemplateByString(content, false);
-	}
-	
-	/**
-	 * Get template by string content
+	 *     
 	 * @param content 模板内容
 	 * @param cache true 则缓存 Template,否则不缓存
 	 */