.--------------------------------------------------------------------- .- prelude.def htmlpp documentation definitions .- .- I like to use a single file to collect all definitions such as .- links to external pages, headers, footers, etc. .--------------------------------------------------------------------- .- The complete $(SERVER) tree is mirrored at $(LOCAL) .define SERVER "" .define LOCAL %(SITE) .define imatix http://www.imatix.com/ .define info mailto:info@imatix.com .define tools /pub/tools .define htmlpp.zip $(tools)/htmlp%(vht).zip .define htmlpp.tgz $(tools)/htmlp%(vht).tgz .define lrdoc.zip $(tools)/lrdoc.zip .define htmlpp.txt doc/htmlpp.txt .define gnugpl /html/gnugpl.htm .define info-zip http://www.cdrom.com/pub/infozip/ .define bperl - ftp://ftp.cs.colorado.edu/mirrors/CPAN/ports/msdos/old/perl4/bperl1x.zip .define perl ftp://ftp.ee.umanitoba.ca/pub/msdos/perl .define winperl http://www.activestate.com/ .define altavista http://www.altavista.digital.com .define htmlppfr http://www.eleves.ens.fr:8080/home/nthiery .define linuxjnl http://www.linuxjournal.com/issue44/2448.html .define langcodes http://www.oasis-open.org/cover/iso639a.html .define DB_Manager http://www.extropia.com/products.html .block header $(TITLE)
| iMatix home page
| htmlpp home page
| $(*FIRST_PAGE=<<) | $(*PREV_PAGE=<) | $(*NEXT_PAGE=>) | $(*LAST_PAGE=>>)
htmlpp htmlpp
Version $(version)

.endblock .block footer
| $(*FIRST_PAGE=<<) | $(*PREV_PAGE=<) | $(*NEXT_PAGE=>) | $(*LAST_PAGE=>>)
.build index
iMatix
Copyright © 1996-97 iMatix
.endblock .block pipe_header $(PIPE_TITLE)
.endblock .block pipe_footer
Copyright © 1996-98 iMatix .endblock .- Browsers do not generally like an empty anchor. We do not want .- to show anything, since anchors often come just before headers. .- One possibility is a non-breaking space, which is what we use. .- .block anchor   .endblock .block index_open .block index_entry | &pageref("$(INDEX_PAGE)","$(INDEX_TITLE)") .endblock .block dir_open
.block dir_entry
$(*DIR_HREF="$(DIR_NAME)") $(DIR_SIZE) $(DIR_DATE) $(DIR_TIME)  $($(DIR_EXT))
.block dir_close
.endblock .- In the directory entry block (above), we translate each extension into .- a descriptive text using $($(DIR_EXT)). For instance, ".txt" -> "Text". .- The filetype.def file lists various such extensions. Add your own to .- cover the types of file you provide. If you fail to define some file .- extension, htmlpp will give you an error message like '.txt undefined'. .include filetype.def