Location: PHPKode > scripts > 3SS Template Engine > 3ss-template-engine/index.php
<?php
require("threessTE.class.php");

define('EMAIL_DEFAULT','hide@address.com');

$t = new threessTE("template.htm");
$t->setContants(); // SETS ALL CONSTANTS

$varName = 'HEAD_TITLE';
$t->setData($varName,'Welcome!');

if ($data)
{
   // Example of getting a template without any variables
   $t->setData('CONTENT',$t->getFile("newTemplate.htm"));
}
else
{
    $t->setData('CONTENT','Here is the content.');
}

echo $t->returnOutput();
//or $t->writeOutput($destinationFile);
?>
Return current item: 3SS Template Engine