I could include it into an own template and use "mytpl_youarehere()" instead of "tpl_youarehere()" in it's main.php.
That's what I'd recommend.
But there maybe some things which can not easily be handled by templates, like authentication.
Well you can pretty much do everything in your template. You can call any DokuWiki function you like, including authentication functions.
Andi -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist