Re: Fastest templating mechanism

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Evert,

Have you looked at smarty (http://smarty.php.net) ? It doesn't do exactly what you're talking about but it seems to be the "Fastest templating mechanism" that I've tested; probably one of the most versatile as well.

Cheers!
-Joe

www.joewollard.com

Evert | Rooftop Solutions wrote:

Hi all,

I'm working on a template system which works a bit like a text translation block. The data looks for example like:

beginblock <div class="block">
endblock </div>
beginauthor <span class="author">
endauthor </div>


The list is going to be very large, it will have several overlays and not all pages need all items in the list. (usually just a fraction)


What will be the smartest way to implement this? I need a low-memory cost and fast solution
I can do it with a php script, like:


$list = array(
 'beginblock' => '<div class="block">',

 etc.

);

but this will use up too much memory. I could additionally do it with a textfile, but if I need to loop through it at every lookup it will be slow..

What are your suggestions?

regards,
Evert


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux