Make the rendered template available in post processing.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Nov 2010 07:57:06 +0000 (08:57 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Nov 2010 07:57:06 +0000 (08:57 +0100)
src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java

index 9cf9c17..7dfd94b 100644 (file)
@@ -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. */
        }