.--------------------------------------------------------------------- .- prelude.def Macros that are used for the constants used in .- the main template file. .- .- I like to use a single file to collect all definitions such as .- links to external pages, headers, footers, etc. .--------------------------------------------------------------------- .define BASE faq .define EXT html .- The name of the FAQ maintainer. .define MAINTAINTER_NAME Ramprasad B .- My e-mail address, isolated in case somebody else takes over .- the maintaining of this FAQ. .define MAINTAINER_ADDRESS ramprasad@gnu.org .- .- This is the header that is prepended to the top of each file. .- .block header $(TITLE) .if "$(BIG_INDEX)" ne "true" .else .endif

.if "$(BIG_INDEX)" ne "true" [ Combined Document ] | Contents | $(*PREV_PAGE=Previous) | $(*NEXT_PAGE=Next) .else Combined Document | Split Document .endif

.- .build index
.endblock .- .- The footer that is appended to the botoom of all of the HTML files. .- .block footer
.if "$(BIG_INDEX)" ne "true" [ Combined Document ] | Contents | $(*PREV_PAGE=Previous) | $(*NEXT_PAGE=Next) .else Combined Document | Split Document .endif

$Author: ramprasadb $(MAINTAINTER_NAME) $ <$(MAINTAINER_ADDRESS)>


Updated: $Date: 2006/10/14 16:10:27 $(TIME) $


.endblock .block index_open .block index_entry &pageref("$(INDEX_PAGE)","$(INDEX_TITLE)")
.endblock .block anchor .end .block dir_open
.block dir_entry
$(*DIR_HREF="$(DIR_NAME)") $(DIR_SIZE) $(DIR_DATE) $(DIR_TIME)  $($(DIR_EXT))
.block dir_close
.end .- 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, grok will give you an error message like '.txt undefined'. .- .- .- Used for a new section header, this should mean that all sections .- have a consistant look and feel, actually this is probably not necessary. .- I just need to update things so that all headings are using the styles .- H3, and H4, as appropriate. .- .macro SECTION

$+

.macro EMAIL $+ <$1>