<?php
// include TPLN
include('TPLN/TPLN.php');
$TPLN = new TPLN;
$TPLN->open('loop_bloc.html');
for($i=0; $i<= 10; $i++)
{
$TPLN->parse('my_bloc.my_text', $i);
$TPLN->loop('my_bloc');
}
$TPLN->write();
?>
<html>
<head>
<title>TPLN - Loop Bloc Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<bloc::my_bloc>
item {my_text}<br>
</bloc::my_bloc>
<br>
<br>
{_Logo}<font size="1"> in {_Chrono} s<br>
Queries executed: {_QueryCount}</font>
</body>
</html>