Hmm.. not sure exactly what it is you've seen. There are a number of
templating systems out there like Smarty (
http://smarty.php.net) or
PEARs Template_IT (
http://pear.php.net/package/HTML_Template_IT). In
most templating systems, you set the variables in the page code then
call the template when you are ready to display:
<?
// this is example code - not specific to anything
$template = new Template("/path/to/template.tpl");
$foo = "Hello";
$template->set_value("foo", $foo);
$template->display();
?>
and the template would contain something like this:
<html>
<body>
<strong>{foo}</strong>
</body>
</html>
The other thing you may be thinking of is just outputting php variables
within html. For example, you could have a script like this:
<?
$foo = "hello";
include("template.php");
?>
template.php:
<html>
<body>
<strong><?=$foo?>
</body>
</html>
<?=$variable?> prints the contents of the variable.
The <% .. %> are tranditional ASP tags but i know that some template
systems are configured to use them.
Sorry for the vauge rambling - i hope it helps :0)
Steve