cgi/html.cgi: allow running from command line
commited30f2a619fb13515e3f446fe3f526db25cdd9a6
authorKyle J. McKay <mackyle@gmail.com>
Fri, 11 Sep 2020 23:18:45 +0000 (11 16:18 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 11 Sep 2020 23:18:45 +0000 (11 16:18 -0700)
treeb55f55a6621988ffbc8a2b4fa502401a6063b5bc
parentb5454c3dd9c98c96de63862e784f249fbc3fb42d
cgi/html.cgi: allow running from command line

There's really no reason to run the html.cgi script every
time such a page is requested.  The values being substituted
are known at install time and do not change.

Make it possible to easily run the cgi/html.cgi script
from the command line by passing 2 (docroot template) or
3 (docroot template basedir) arguments in which case the
response headers are also omitted from the output.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
cgi/html.cgi