Which template engine do you use..?

#1
[eluser]rvent[/eluser]
Hello,

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..>?

Thanks

#2
[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.

#3
[eluser]rvent[/eluser]
Anybody doing it with Smarty...?

..?

Thanks

#4
[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:
http://ellislab.com/forums/viewthread/73367/

#5
[eluser]Avatar[/eluser]
yes, smarty over here buddy

#6
[eluser]unficyp[/eluser]
Smarty user here Smile

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

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

#8
[eluser]xwero[/eluser]
I have to agree with Elliot. If you are afraid a designer is going to mess up your code add comments.

#9
[eluser]dtrenz[/eluser]
PHP works great for templating, especially if you can turn on short open tags. No need for added overhead from templating systems.

#10
[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.