.---------------------------------------------------------------------
.-  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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>$(TITLE)</TITLE>

.if "$(BIG_INDEX)" ne "true" 
<LINK rel=Combined HREF="big.html">
<LINK rel=Previous HREF="$(PREV_PAGE)">
<LINK rel=Top HREF="faq.html">
<LINK rel=Next     HREF="$(NEXT_PAGE)">
.else
<LINK rel=Split HREF="faq.html">
.endif

<!--  Some people may not like this, but I think it makes it -->
<!-- simpler to view the index page.                         -->
<!--  Argueing creatively gives you more credit .. ;)        -->
<STYLE type="text/css">
A:link { color: #02F }
A:visited  { color: #808 }
A:hover { color: purple; background: #AFB }
</STYLE>

</HEAD>
<BODY>
<P>
.if "$(BIG_INDEX)" ne "true" 
[ <A HREF="big.html">Combined Document</A> ]
 | <A HREF="faq.html">Contents</A> |
$(*PREV_PAGE=Previous) |
$(*NEXT_PAGE=Next) 
.else
Combined Document
 | <A HREF="faq.html">Split Document</A>
.endif
</P>
.- .build index
<hr>
.endblock

.-
.-  The footer that is appended to the botoom of all of the HTML files.
.-
.block footer
<hr>
<table width=100%>
<tr>
<td align=left>
.if "$(BIG_INDEX)" ne "true" 
[ <A HREF="big.html">Combined Document</A> ]
 | <A HREF="faq.html">Contents</A> |
$(*PREV_PAGE=Previous) |
$(*NEXT_PAGE=Next) 
.else
Combined Document
 | <A HREF="faq.html">Split Document</A>
.endif
<BR>
<P>
$Author: ramprasadb $(MAINTAINTER_NAME) $
&lt;<a href="mailto:$(MAINTAINER_ADDRESS)">$(MAINTAINER_ADDRESS)</a>&gt;
</td>
<td align=right>
<BR>
<P>
Updated: $Date: 2006/10/14 16:10:27 $(TIME) $
</td>
</tr>
</Table>
<P>
<HR>
</body>
</HTML>
.endblock

.block index_open
.block index_entry
&pageref("$(INDEX_PAGE)","<EM>$(INDEX_TITLE)</EM>") <BR>
.endblock

.block anchor
<A NAME="$(ANCHOR)" title="$(ANCHOR)"><!-- Anchor--></A>
.end

.block dir_open
<PRE>
.block dir_entry
$(*DIR_HREF="$(DIR_NAME)") $(DIR_SIZE) $(DIR_DATE) $(DIR_TIME)  $($(DIR_EXT))
.block dir_close
</PRE>
.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 <h3>$+</h3>

.macro EMAIL $+ &lt;<A HREF="mailto:$1">$1</A>&gt;
