Actually post process after rendering the template!
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 30 Nov 2010 05:25:12 +0000 (06:25 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 30 Nov 2010 05:25:12 +0000 (06:25 +0100)
src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java

index 7dfd94b..e823eb5 100644 (file)
@@ -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());
        }