TMP
authorKai Moritz <kai@juplo.de>
Wed, 24 Apr 2019 14:56:18 +0000 (16:56 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 24 Apr 2019 14:56:18 +0000 (16:56 +0200)
src/main/java/de/juplo/thymeleaf/ImportVariablesAttrProcessor.java

index d41b33c..bca2b4e 100644 (file)
@@ -153,13 +153,13 @@ public class ImportVariablesAttrProcessor extends AbstractAttributeModelProcesso
                 }
               });
 
-      for (ITemplateResolver t_resolver : config.getTemplateResolvers())
+      for (ITemplateResolver t_resolver : context.getConfiguration().getTemplateResolvers())
       {
         TemplateResolution resolution = t_resolver.resolveTemplate(params);
         if (resolution == null)
           continue;
-        if (!"JSON".equals(resolution.getTemplateMode()))
-          continue;
+//        if (!"JSON".equals(resolution.getTemplateMode()))
+//          continue;
         IResourceResolver r_resolver = resolution.getResourceResolver();
         InputStream is =
             r_resolver.getResourceAsStream(params, resolution.getResourceName());
@@ -313,11 +313,4 @@ public class ImportVariablesAttrProcessor extends AbstractAttributeModelProcesso
     node.setNodeProperty(PROPERTY_NAME, variables);
     return variables;
   }
-
-
-  @Override
-  public int getPrecedence()
-  {
-    return ATTR_PRECEDENCE;
-  }
 }