in reply to dynamic httpd.conf
Not HTML::Template, but if you use mod_perl you can use <Perl></Perl> sections (and other things) to dynamically configure Apache.