Guava

The Guava Tools

Example - test3.htt


Home  Computer Software  Guava Main Page  Guava Examples 

The following source code should be compiled with:
 
$ htt2html -nocont test3.htt

 
/* test3.htt */

/* This is the start of the template. */

#include "colours.inc"

<HTML>

<HEAD>
<TITLE> TITLESTRING </TITLE>
</HEAD>

<BODY BGCOLOR = BG_COLOUR
      TEXT    = TX_COLOUR
      VLINK   = VL_COLOUR
      LINK    = LN_COLOUR >

<HTML>

	<P>This text will appear above the page text on every page.

	<PAGE>
	
	<P>This text will appear below the page text on every page.

</HTML>

/* This is the end of the template. */


/* This is the start of the page data. */

<HDR>
#define TITLESTRING Page One Title
<DATA>
<P>This is the text for page one.

<HDR>
#define TITLESTRING Page Two Title
<DATA>
<P>This is the text for page two.

<HDR>
#define TITLESTRING Page Three Title
<DATA>
<P>This is the text for page three.

	

 
/* colours.inc */

#define BG_COLOUR "#006600"  /* Dark green */
#define TX_COLOUR "#FFFFFF"  /* White */
#define VL_COLOUR "#999999"  /* Grey  */
#define LN_COLOUR "#FFFFFF"  /* White */
	

 

This output will be produced:
 

out01.html
<!-- HTML generated at Wed Dec  1 23:00:51 1999.
hss2html by Steve Morphet 1999. -->
<HTML>
<HEAD>
<TITLE> Page One Title </TITLE>
</HEAD>
<BODY BGCOLOR = "#006600"
      TEXT    = "#FFFFFF"
      VLINK   = "#999999"
      LINK    = "#FFFFFF" >
<HTML>
	<P>This text will appear above the page text on every page.
<P>This is the text for page one.
	<P>This text will appear below the page text on every page.
</HTML>
	

 

out02.html
<!-- HTML generated at Wed Dec  1 23:00:51 1999.
hss2html by Steve Morphet 1999. -->
<HTML>
<HEAD>
<TITLE> Page Two Title </TITLE>
</HEAD>
<BODY BGCOLOR = "#006600"
      TEXT    = "#FFFFFF"
      VLINK   = "#999999"
      LINK    = "#FFFFFF" >
<HTML>
	<P>This text will appear above the page text on every page.
<P>This is the text for page two.
	<P>This text will appear below the page text on every page.
</HTML>
	

 

out03.html
<!-- HTML generated at Wed Dec  1 23:00:51 1999.
hss2html by Steve Morphet 1999. -->
<HTML>
<HEAD>
<TITLE> Page Three Title </TITLE>
</HEAD>
<BODY BGCOLOR = "#006600"
      TEXT    = "#FFFFFF"
      VLINK   = "#999999"
      LINK    = "#FFFFFF" >
<HTML>
	<P>This text will appear above the page text on every page.
<P>This is the text for page three.
	<P>This text will appear below the page text on every page.
</HTML>
	



Email: