TEMPLATES DIRECTORY
Axyl Library
P Waite

The templates directory contains the default HTML template files which
determine the structure of your website pages, and also the theme
directories.

You create a template file for each 'page type'. You plan this out at the
beginning usually. For example you might decide that you will have an
'index page' type which has a lot of grpahical content on it, a 'main
page' type for the bulk of your website content, and a 'popup page' type
which is for popping up windows with minimal branding/graphics.

You decide on a name for each, eg: 'index', 'main' and 'popup' in our
example, and then create filenames by prefixing each with 'template_'
and adding the '.html' extension. So we end up with:

  template_index.html
  template_main.html
  template_popup.html

In each file you put HTML which provides the basic skeleton of the look
of the appropriate webpages. Wherever you want some dynamic content,
identify this with an HTML comment tage. For example if we wanted a
small login form somewhere, we would maybe put <!--USER_LOGIN--> at that
point in the template.

In your webpage you would then populate this by generating your form
into a Php string variable, eg: $my_login_form, and then plugging this
into the webpage response with:

  $RESPONSE->plugin("USER_LOGIN", $my_login_form);

This replaces the HTML comment in the template with your dynamically
generated form content.
