<p>Called just before the public page HTML is rendered.</p>

<p>Callback signature:</p>
<blockquote><code><em>\XF\Pub\App</em> $app, <em>array</em> &amp;$params, <em>\XF\Mvc\Reply\AbstractReply</em> $reply, <em>\XF\Mvc\Renderer\AbstractRenderer</em> $renderer</code></blockquote>

<p>Arguments:</p>
<ol>
	<li><code><em>\XF\Pub\App</em> $app</code> - Public App object.</li>
	<li><code><em>array</em> &amp;$params</code> - Array of params being passed into the (container) template.</li>
	<li><code><em>\XF\Mvc\Reply\AbstractReply</em> $reply</code> - Reply object.</li>
	<li><code><em>\XF\Mvc\Renderer\AbstractRenderer</em> $renderer</code> - Renderer object.</li>
</ol>