diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-11-05 20:55:41 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-11-05 20:55:41 +0000 |
commit | bdcb15a7e65b5df030d7dac778cb68ac4e3277e6 (patch) | |
tree | 4b424783c27e890ca8503354502bbe03b3603299 /cgi.h.example | |
parent | bc4c8866b7e528690753ded27b93b99e21bdc614 (diff) | |
download | mandoc-bdcb15a7e65b5df030d7dac778cb68ac4e3277e6.tar.gz |
Use include files "header.html" and "footer.html" rather than a
compiled-in string. This is not a security risk, we read the file
manpath.conf from the same directory, anyway. No error handling
is needed; even if the files are absent, that's not an error.
This is more flexible without causing complication of the code or
the user interface. It helps the upcoming revamp of the online
manual pages on man.NetBSD.org.
Based on an idea by Jean-Yves Migeon <jeanyves dot migeon at free dot fr>,
but implemented in a much simpler way.
Diffstat (limited to 'cgi.h.example')
-rw-r--r-- | cgi.h.example | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cgi.h.example b/cgi.h.example index f4c78318..c4878d34 100644 --- a/cgi.h.example +++ b/cgi.h.example @@ -4,6 +4,4 @@ #define MAN_DIR "/var/www/man" #define CSS_DIR "" #define CUSTOMIZE_TITLE "Manual pages with mandoc" -#define CUSTOMIZE_BEGIN "<H2>\nManual pages with " \ - "<A HREF=\"http://mdocml.bsd.lv/\">mandoc</A>\n</H2>" #define COMPAT_OLDURI Yes |