Re: Datagrid class in PEAR?
| From: | Wolfram Kriesing | Date: | Fri, 19 Apr 2002 14:06:49 +0000 |
| Subject: | Re: Datagrid class in PEAR? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-1217@lists.php.net to get a copy of this message | ||
On Friday 19 April 2002 13:56, Bertrand Mansion wrote:
> Hi,
>
> I have used both Smarty and ITX.
> For this project, the only viable solution is probably ITX. Smarty is
> excellent, I admit it and I was stun by its possibilities but it is not
> viable for this project.
>
> IMHO, the best solution would be to use neither and write our own little,
> lightweight, ultrafast parser (one method with a preg_replace should be
> enough for that). But we have to use ITX template style : {VAR}
>
> Do you agree ?
for some little lightweight have a look at:
http://sf.net/projects/simpletpl
or examples on
http://wolfram.kriesing.de/libs/php/SimpleTemplate/examples/
especially
http://wolfram.kriesing.de/libs/php/SimpleTemplate/examples/fullFeatured/
which is also a little tutorial
its a lightweight really fast template engine using preg_replace almost only
and you can use standard php-code inside the html where the '<?php' is
replaced by whatever u like default '{' and using indention for creating
blocks. for example
{foreach($tpl->options['delimiter'] as $key=>$value)}
{$key} => {$value}
<br>
becomes
<?php foreach($tpl->options['delimiter'] as $key=>$value) { ?>
<?=$key?> = <?=$value?>
<br>
<?php } ?>
is that what u were looking for?
--
Wolfram
... translating template engine ....
http://sf.net/projects/simpletpl
... authentication system ....
http://sf.net/projects/auth