htp on-line reference : Including |
||||||||
How to put common parts in different filesWhen you have a web site consisting of several pages, you may notice that you often need to add the same html code to all pages. With htp you can put common code in extra files and include them in all pages. Here is an example.
file tag is used to
include a different file. When this tag is processed, htp will read
and process the file header.hti (see
below) and after it is finished it continues after the tag. The
included file contains the usual html header and the navigation bar.
All macros defined before the file include tag are also
visible in the included file. So the macro title defined
in the first line is used in the header to produce the title of the
page:
|
||||||||
|
||||||||
htp on-line reference / http://htp.sourceforge.net/ref/
Authors: Jim Nelson, Jochen Hoenicke, Michael Möller. Maintainers: Jochen Hoenicke.
Copyright © 1995-96 Jim Nelson. last updated Fri Aug 31, 2007 |