Commits

jcarreira  committed c49d328

Adding registerTemplateEngine() method to allow more TemplateEngines to be added programmatically

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@538573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits a75e956

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/views/jsp/ui/template/TemplateEngineManager.java

         templateEngines.put("jsp", new JspTemplateEngine());
     }
 
+    public static void registerTemplateEngine(String templateExtension, TemplateEngine templateEngine) {
+        MANAGER.templateEngines.put(templateExtension,templateEngine);
+    }
+
     /**
      * Gets the TemplateEngine for the template name. If the template name has an extension (for instance foo.jsp), then
      * this extension will be used to look up the appropriate TemplateEngine. If it does not have an extension, it will