|
< BLOCK body>
htp has been designed to break apart two components required to
HTML files: design and content.
<P>
The design of your pages is best kept in a <A HREF="file.html">template</A>
file. This reference has a <A HREF="template.html">sample template</A>, and
is itself built with template files.
<P>
Page content should be held in separate files, each using <A HREF="file.html">
FILE INCLUDE or TEMPLATE</A> to point to a template file. By using
<A HREF="default.html">global and project default files</A> and keeping
logical groupings of subject matter in separate directories, this dissection
of design and content becomes quite natural.
<P>
Although htp does not enforce any file naming conventions, I've adopted
the following file extensions for my own sanity:
<P>
<UL>
<LI><STRONG>.htp</STRONG>: Content file defining macros containing the
textual content. The macros are expanded by the template file. </LI>
<LI><STRONG>.htt</STRONG>: Template file describing page layout. </LI>
<LI><STRONG>.def</STRONG>: Include file holding common macros and
setting options. </LI>
<LI><STRONG>.hti</STRONG>: Include file holding common content
and layout parts. </LI>
</UL>
< /BLOCK>
|