From: David ‘Bombe’ Roden Date: Tue, 30 Nov 2010 05:25:12 +0000 (+0100) Subject: Actually post process after rendering the template! X-Git-Tag: 0.3.2-RC1~1 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d9ce890a0ffc31808d86e735ab833d05727836b2;p=Sone.git Actually post process after rendering the template! --- 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()); }