Asciidoctor mit Neon transformieren
ulrich
2022-01-09 1d695f99b80503bd6efbf181e6b8733ba3d1fb25
src/de/uhilger/httpserver/adoc/AdocFilter.java
@@ -59,7 +59,11 @@
        String fileBase = exchange.getHttpContext().getAttributes().get(FileHandler.ATTR_FILE_BASE).toString();
        AdocActor actor = new AdocActor();
        HttpHelper helper = new HttpHelper();
        actor.processAdocFile(new File(fileBase, helper.getFileName(exchange)), Boolean.FALSE.toString());
        if(query != null && query.equalsIgnoreCase("pdf=true")) {
          actor.processAdocFile(new File(fileBase, helper.getFileName(exchange)), Boolean.TRUE.toString());
        } else {
          actor.processAdocFile(new File(fileBase, helper.getFileName(exchange)), Boolean.FALSE.toString());
        }
      }
    }    
    chain.doFilter(exchange);