From 739bc6033c340c0618f28c73d1659b56dcc06db7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 25 Nov 2010 08:57:06 +0100 Subject: [PATCH] Make the rendered template available in post processing. --- src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java | 6 ++++-- 1 file changed, 4 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 9cf9c17..7dfd94b 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java @@ -125,7 +125,7 @@ public class TemplatePage implements Page, LinkEnabledCallback { return new RedirectResponse(re1.getTarget()); } - postProcess(request); + postProcess(request, template); StringWriter stringWriter = new StringWriter(); template.render(stringWriter); @@ -178,8 +178,10 @@ public class TemplatePage implements Page, LinkEnabledCallback { * * @param request * The request being processed + * @param template + * The template that was rendered */ - protected void postProcess(Request request) { + protected void postProcess(Request request, Template template) { /* do nothing. */ } -- 2.7.4