jcarreira  committed c49d328

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


  • Participants
  • Parent commits a75e956

Comments (0)

Files changed (1)

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

         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