Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternatives to Smarty for separating presentation from code in php?

I'm currently using the Smarty templating system for our production site, but am curious how much of a performance hit I'm taking by using this templating engine. Are there faster alternatives? Is there a way to code so I may not have to use such a templating system? Thank you!

like image 544
ensnare Avatar asked Dec 29 '22 10:12

ensnare


1 Answers

You don't need an external templating engine to separate code from presentation, you just need logic for that. PHP itself is perfectly fine as a template engine -- just don't mix PHP code and HTML. Template engines are just easier to learn for a non programmer web designer.

like image 69
Matteo Riva Avatar answered Feb 16 '23 08:02

Matteo Riva