You are here: Re: Fastest templating mechanism « PHP « IT news, forums, messages
Re: Fastest templating mechanism

Posted by Jens Kleikamp on 10/19/37 11:15

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
>
Have also a look at www.phpsavant.com. Different from smarty, its a
lightweight object-oriented template engine.
One neat feature is that you could add optionally your own custom markup
compilers.

Regards,
Jens

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация