From 47bd6be69876df6b96ea201c947a2c7b238b785a Mon Sep 17 00:00:00 2001
From: ulrich <ulrich@ulrich-vaio>
Date: Wed, 29 Sep 2021 08:19:39 +0000
Subject: [PATCH] neuester Stand

---
 src/de/uhilger/httpserver/template/TemplateActor.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/de/uhilger/httpserver/template/TemplateActor.java b/src/de/uhilger/httpserver/template/TemplateActor.java
index ce670f6..20038f7 100644
--- a/src/de/uhilger/httpserver/template/TemplateActor.java
+++ b/src/de/uhilger/httpserver/template/TemplateActor.java
@@ -45,7 +45,7 @@
   public static final String STR_EMPTY = "";
   public static final String STR_SLASH = "/";
   
-  public static final String ATTR_TEMPLATE = "template";
+  //public static final String ATTR_TEMPLATE = "template";
   
   //public static final String WELCOME_FILE = "index.htmi";
   
@@ -63,7 +63,7 @@
    * @return das ausgefuellte Template
    * @throws IOException 
    */
-  public String render(HttpExchange exchange, Map data) throws IOException {
+  public String render(HttpExchange exchange, Object data, String template) throws IOException {
     MustacheFactory mf;
     Mustache m;
     HttpHelper helper = new HttpHelper();
@@ -71,7 +71,7 @@
     String fileBase = helper.getAttrStr(attributes, FileHandler.ATTR_FILE_BASE, STR_EMPTY);
     File fileRoot = new File(fileBase);    
     logger.fine("fileRoot: " + fileRoot.getAbsolutePath());
-    String template = helper.getAttrStr(attributes, ATTR_TEMPLATE, STR_EMPTY);
+    //String template = helper.getAttrStr(attributes, ATTR_TEMPLATE, STR_EMPTY);
     File templateFile = new File(fileRoot, template);
     if(templateFile.exists()) {
       logger.fine("using template " + templateFile.getAbsolutePath());

--
Gitblit v1.9.3