浏览代码

新增 getTemplateByString(String content, String cacheKey)

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

+ 2 - 2
src/main/java/com/jfinal/template/Engine.java

@@ -211,11 +211,11 @@ public class Engine {
 		return template;
 	}
 
-    public Template getTemplateByString(String content, String cacheKey) {
+	public Template getTemplateByString(String content, String cacheKey) {
 		if (cacheKey == null) {
 			return buildTemplateBySource(new StringSource(content, cacheKey));
 		}
-        
+		
 		Template template = templateCache.get(cacheKey);
 		if (template == null) {
 			template = buildTemplateBySource(new StringSource(content, cacheKey));