[phplib] Templates From: Saulia X.... (Saulius.Sinkunas <email protected>)
Date: 01/08/01

Hello,

I have one question abuot templates. At first, what is quicker:
FastTemplate port from Perl (class.fasttample) or phplib templates?

And second. Is it better to construct page from more files or less.
For example, I can define:
<!-- main.ihml -->
<html>
<head></head>
<body>
  {CONTENT}
</body></html>
<!--------------->

then assign so CONTENT some value and parse:

$tpl->set_var("CONTENT", "bla bla");
$pl->pparse("main");

O I could use two files for general structure:

<!-- header.thml -->
<html>
<head></html>
<body>
<!----------------->

<!-- footer.ihml -->
</body></html>
<!----------------->

And then parse anf print these three files:

$tpl->pparse("header");
$tpl->pparse("content");
$tpl->pparse("footer");

What is preferable and better to use?

Bye,
Saulius

-- 
aka Smu
ICQ#: 6403695
[Azuolas] - http://www.azuolas.ktu.lt
[GZK]     - http://www.gim.ktu.lt/gzk

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>