Location: PHPKode > scripts > Dextep Template Engine > example.php
<?
header('content-type: text/html; charset=utf-8');

require_once 'Dextep.class.php';
$template = new Dextep();

if (isset($_POST['name'])) 	$template->setVar('name', $_POST['name']);
if (isset($_POST['sex'])) 	$template->setVar('sex', $_POST['sex']);

$template->setVar('list', array(
	'Drinks' => array('Milk', 'Coffee', 'Tea'),
	'Cars' => array('Honda', 'Ford', 'Renault')
));

$template->setVar('calendar', array(
	'nDays' => date('t'), 
	'start' => date('w', strtotime(date('Y-m-01')))
));

echo $template->getTemplate('example', true);
?>
Return current item: Dextep Template Engine