.dress : the main template : the target web page structure

an HTML File with 2 kinds of object in it

Objects defined by ManyPage : <PM.XXX> Example : <PM.BODY>

Objects defined by the webmaster : <MP.YYY> Example : <MP.MENU.UP>

For each file found in the Source Directory, ManyPage create a file in the Destination Directory, copy the content of the .dress file and replace each object by its value. That value can be defined by the content of the source file, its characteristics or in the .obj files. An object can be defined recursivly by other objects. You will discover more about ManyPage Objects in the following page.

The default .dress file is the one that you should put in the Source Directory, at the root. You could place other '.dress' files in subdirectories (it will be applied on all the files in the subdirectory and its subdirectories). Or you can define a .dress for only one file (a file toto.dress will be apply only on file toto.html, toto.en.html, toto.fr.html.... and all defined language).

The main 4 ManyPage objects

The main 4 ManyPage objects are extracted from the source file. To allow such an extraction, you should be sure to respect the minimal HTML file structure :

<HTML>
   <HEAD>
		<TITLE>
		</TITLE>
   </HEAD>
   <BODY>
   </BODY>
</HTML>

If so, you will be able to use the following ManyPage Objects
ManyPage Tag Replacement value
<PM.HEAD> What is between HEAD tags in the source file
<PM.TITLE> What is between TITLE tags in the source file
<PM.BODY.ATTRIBUT> All the attributs of the tag BODY of the source file
<PM.BODY> What is between BODY tags in the source file

 


Here is the most simple .dress file

It can be use to copy HTML file without any modification.

<HTML>
	<HEAD>
		<PM.HEAD>
	</HEAD>
               
	<BODY <PM.BODY.ATTRIBUT>>
		<PM.BODY>
	</BODY>
</HTML>

 

A more intresting one...

...using a structure defined with a HTML table and 3 objects defined by the webmaster. Note that it could be interesting to not use the tag <PM.BODY.ATTRIBUT> in order to clean up some no homogeneous source files.

<HTML>
	<HEAD>
		<PM.HEAD>
	</HEAD>
               
	<BODY bgcolor="#FFFFFF">

		<TABLE>
			<TR>
				<TD>
					<MP.MENU.UP>
				</TD>
			</TR>
			<TR>
				<TD>
					<PM.BODY>
				</TD>
			</TR>
			<TR>
				<TD>
					<MP.MENU.DOWN>
				</TD>
			</TR>
		</TABLE>
		<MP.SIGNATURE>
	</BODY>
</HTML>

 

 

Copyright 1994-2009
Pascal Vuylsteker

Last modified:
25/3/2002

Send your comments at :
<pvk@vuylsteker.net>