If you need to send parts of a Smarty template to a header i.e. styles should be, etc.
Here is a very simple Smarty plug-in to do so....
function.xmhsend.php
So as in the example, Capture anything within a template and assign it to a var, the var is then appended to the $header....
It must be in order tho, and $xoopsOption["xoops_module_header"] should equal something before its appended, so needs to be before the header.php in our systems modules.