Location: PHPKode > scripts > Template Handler > template-handler/README.TXT
#################################################
Template Handler Class
#################################################

The template_handler class is a simple class designed to
assist the developer in wring PHP code, without all the issues
related to embeding HTML in the code.

The class works on a simple principle.  

-  Create an HTML page, and wherever you want 
   dynamic content to be inserted on the page insert
   a 'tag'  i.e:  {content}
   
-  Using the template handler, open the template,
   and set the objects
   
- display the template


=======================================
	sample code
=======================================

<?

# load the new template template
$template = new template_handler();
$template->setBaseDir("templates/");
$template->setTemplate("template.htm");

$template->setObject('content','This is the content');

print $template->Retrieve();

?>


===================================
	sample template
===================================

<html>
<body>
<hr>
{content}
</body>
</html>

-	
Return current item: Template Handler