logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Datagrid class in PEAR?: msg#00137

Subject: Re: Datagrid class in PEAR?
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

-- 
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>