Location: PHPKode > scripts > Easy HTML Template Engine > easy-html-template-engine/example.php
<?php
include("trgTemplate.php");

$comTpl = new trgTemplate();

$_TITLE = "Template test";
$_CONTENT = "Content for site";

$comTpl->defineTpl("template/index.html");
$comTpl->defineTag("_TITLE_",$_TITLE);
$comTpl->defineTag("_CONTENT_",$_CONTENT);
$comTpl->printTpl();
?>
Return current item: Easy HTML Template Engine