title: SimpleTAL API
subject: Documentation on how to use the SimpleTAL API.

SimpleTAL consists of four different modules: simpleTAL, simpleTALES, and simpleTALUtils.  The API for each of these modules is documented separately:
<ul>
	<li><a href="api-simpletal.html">simpleTAL</a> - contains functions to compile HTML and XML templates into objects ready for use.</li>
	<li><a href="api-simpletales.html">simpleTALES</a> - contains the Context class which provides the environment in which templates are expanded.</li>
	<li><a href="api-simpletalutils.html">simpleTALUtils</a> - optional utility functions for dealing with SimpleTAL templates.</li>
	<li><a href="api-simpleelementtree.html">simpleElementTree</a> - integration with ElementTree allowing XML documents to be parsed and placed directly into the Context instance.</li>
</ul>

<h2>Logging in SimpleTAL</h2>
To control the output of logging messages from SimpleTAL it is necessary to retrieve the logger objects for each module, which can be done using:

<pre><code>simpleTALLogger = logging.getLogger ("simpleTAL")
simpleTALESLogger = logging.getLogger ("simpleTALES")
</code></pre>

The configuration of these loggers can then be adjusted as described in the logging library documentation.  For example to stop warnings being logged:
<pre><code>simpleTALLogger.setLevel (logging.ERROR)
simpleTALESLogger.setLevel (logging.ERROR)
</code></pre>

<a href="index.html">Back to SimpleTAL</a>
