FastTemplate
------------
A port of FastTemplates to Python.

Report suggestions/bugs to vijaykumar@bravegnu.org

Installing
----------
To install FastTemplate

$ tar --gunzip -x -f FastTemplate-x.x.x.tar.gz
$ cd FastTemplate-x.x.x
$ python setup.py install

Tutorial
--------
* Import the FastTemplate module using

import FastTemplate

* Create an instance of the FastTemplate class using

tp = FastTemplate.FastTemplate(dir)

Here 'dir' specifies the directory that contains the templates.

* Associate a name to each of the template files as follows

tp.define({"name1": "template_file1.tpl",
           "name2": "template_file2.tpl"})

* Assign values to FastTemplate variables as follows

tp.assign("var1", "value1")

* After assigning values to variables, the variables can be interpolated
into a template using

tp.parse("var2", "name2")

The interpolated text is stored is store in "var2". There interpolated
text can be used for substitution in other templates.

* Values of variables can be fetched using

val = tp.fetch("var2")

If the variable is not specified the variable last assigned with
'parse' method is used.

* Values of variables can printed using

tp.printout("var2")

If the variable is not specified the variable last assigned with
'parse' method is used.
