From d9ce890a0ffc31808d86e735ab833d05727836b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 30 Nov 2010 06:25:12 +0100 Subject: [PATCH] Actually post process after rendering the template! --- src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java b/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java index 7dfd94b..e823eb5 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java @@ -125,12 +125,12 @@ public class TemplatePage implements Page, LinkEnabledCallback { return new RedirectResponse(re1.getTarget()); } - postProcess(request, template); - StringWriter stringWriter = new StringWriter(); template.render(stringWriter); pageNode.content.addChild("%", stringWriter.toString()); + postProcess(request, template); + return new Response(200, "OK", "text/html", pageNode.outer.generate()); } -- 2.7.4