From: David ‘Bombe’ Roden Date: Thu, 25 Nov 2010 07:57:06 +0000 (+0100) Subject: Make the rendered template available in post processing. X-Git-Tag: 0.3.1-RC1~29 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=739bc6033c340c0618f28c73d1659b56dcc06db7;p=Sone.git Make the rendered template available in post processing. --- 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. */ }