Which template engine do you use..?


i am starting an application and i need it to have the ability to change templates from time to time. Since doing everything in the view file will be a pain when updating it.

I did a search on the wiki and found the following to be of interest:
Most Simple Template Library
TinyButStrong Template Engine
PHXView View Engine

But i was wonderig what's good and easy to use. i need a front end and a back end views. Both of them will have different layouts/templates due to their functions...

What do you use..?
Whats easier..?
whats better..>?


[eluser]louis w[/eluser]
I had been looking at Most Simple Template Library and found it very interesting.

The only thing I did not like about this approach is that if I want to alter the page head (title, adding css, or js embeds) it would have to be done before I pass info to the view.

Anybody doing it with Smarty...?



[eluser]louis w[/eluser]
I wish more people would share information about their template engines.

I have not used Smarty, but I came across this forum post earlier today:

yes, smarty over here buddy

Smarty user here Smile

[eluser]Elliot Haughin[/eluser]
Raw PHP...

In the wise words of daft punk:
better, faster, harder, stronger.

I have to agree with Elliot. If you are afraid a designer is going to mess up your code add comments.

PHP works great for templating, especially if you can turn on short open tags. No need for added overhead from templating systems.

[eluser]louis w[/eluser]
I agree with the use php comments.

But a question for you PHP guys, what template engine do you use? Do you just have a bunch of includes in your views? Do you use one of the ones linked in the first post?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.