********************************************************************
                     D R U P A L    M O D U L E
********************************************************************
Name: template component
Author: Robert Castelo <services at cortextcommunications dot com>
Drupal: 4.6.x
********************************************************************
DESCRIPTION:

Handles data, logic, and UI of templates(s) which are used by other modules. 
Templates are stored in the database, and are used for specific purposes, e.g. email, pdf.

Component module which provides service to other modules, don't install
this unless another module requires it.

The template can be used for most purposes, and includes following
information:

Type: Type of service for which this template is used - ties template to the module
using template.module.

Name: Name of the template

Markup: How the template will be used, e.g 'plain text', 'html', 'svg'.

Format: Input format being used. For instance PHP could be used as the input format to create 
a HTML or plain text template, allowing the template to include some logic.


Detailed API documentation for this component on the way, but for the
moment, see enewsletter.module for example of how to use this.


********************************************************************
INSTALLATION:

Note: It is assumed that you have Drupal up and running.  Be sure to
check the Drupal web site if you need assistance.  If you run into
problems, you should always read the INSTALL.txt that comes with the
Drupal package and read the online documentation.

1. Place the entire template directory into your Drupal modules/
   directory.

2. Load the database definition file (template/template.module) using the
   tool of your choice (e.g. phpmyadmin). For mysql and command line
   access use:

     mysql -u user -p drupal < template/template.mysql

   Replace 'user' with the MySQL username, and 'drupal' with the
   database being used.

3. Enable the template module by navigating to:

     administer > modules
     
  Click the 'Save configuration' button at the bottom to commit your
  changes.


********************************************************************
TO DO
Document API
I broke template.module when converting it into a component module, needs a little TLC to get it working again.




