Whats the best template system?

Hello

I’m working to a develop a new framework for myself and i come to a big issue choosing the right template system. I’m interested the most in making it easy for future developers who will work with it. I have 2 options, using a template with a macro scripting like smarty or using something more basic where the php takes care of all the “logic”. Until now i used something like the one bellow and was pretty useful.

[tablehead]
html code
{DATA}
footer html code
[/tablehead]

[tablerow]
some html content {VARS} {VARS2} all comes from database
[/tablerow]

I coudnt find the pros and cons for each so i can decide the way i should go. Smarty its very big and slower then the other solution and you need to learn another scripting :slight_smile:

Thanks

Hi,

Normally I use Plain PHP as that is what PHP really is - a templating language, but out of the bunch of the xtra-templating systems Twig is really good.

Regards,
Steve

Hi

Thanks a lot, this is really a nice template system and pretty light compared to smarty :slight_smile: