Prev Next Top
The body template is a simple HTML file that may contain one variable: @DOC@. If the variable is absent, HTMLslicer assumes that an implicit @DOC@ variable has been placed just before the last HTML tags: "</BODY></HTML>". Each resulting HTML page file contains (See also Concepts):
- the "top part" of the template file that precedes the @DOC@ variable,
- then, optionally, the header part (if requested, see Style Setup Panel),
- then the related segment from your source document,
- then, optionally, the footer part (if requested, see Style Setup Panel),
- then, finally, the "bottom" part of the template file that follows the @DOC@ variable.
Indeed, @DOC@ represents the HTML current segment from your source document (with, optionally, its header and footer parts). A body template might come from three possible sources:
- Your source document: it does not contain any variable. The "top" part of such a template is the part contained between the beginning of your document file, and up to the first header, where the segmentation starts. The bottom part is simply the string: "</BODY></HTML>".
- The file named BodyTemplate.htm that is located in the application directory (the "default template"). The simplest one to use in the one I am providing with the installation package. Examine it, because it is a very good introduction. Later, you can replace it with your own designed default template, but it should have the same file name "BodyTemplate.htm".
- The name of the file that you specified in the Style Setup panel and that should be found in your source document directory.
Prev Next Top