>>>>> "Randal" == Randal L Schwartz <[EMAIL PROTECTED]> writes:
Randal> using Template Toolkit. Easy'nuff. Lots of common stuff, plus unique
Randal> stuff. You can use "tpage" and then there's not even any programming:
Randal> httpd.conf.pages: httpd.conf.tmpl
Randal> tpage --define server=pages < $< > $@
Randal> httpd.conf.proxy: httpd.conf.tmpl
Randal> tpage --define server=proxy < $< > $@
Randal> then check [% IF server = 'pages'; ... ; END %] in your templates.
Or duh, even simpler:
[%
FOREACH server = ['pages', 'proxy'];
FILTER redirect("httpd.conf.$server");
-%]
... everything else ...
[%
END; # filter redirect
END; # foreach
-%]
Then just "tpage" the file, and you've got a new version!
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!