- Post process the XHTML output
- Sends the XHTML to the browser
The event is signaled by tpl_content() in inc/template.php after receiving the output on completion of the TPL_ACT_RENDER event. Use it to post process the XHTML output before it is sent to the client browser.
The passed Doku_Event object has the fields:
$data field contains the XHTML of content as a string.
The BEFORE event handler can modify the XHTML before outputting and it let you prevent the default action.
$result is always null because the default action ptln() returns nothing, but only send to the browser. The AFTER handler is (default) called after sending to the browser.