I'm building a simple 10-page site using an MVC-like architecture. Is it worth learning the Smarty templating engine?
Template engines add overhead.
You should only use a template engine if you need to have others create/edit templates and you do not want them to be able to use PHP.
If you are the sole maintainer, defiantly go with plain PHP. If your team can be trusted (they are all devs), stick with plain PHP. If you have designers that don't know PHP or, more importantly, letting them use PHP is dangerous, then use Smarty or another template engine.
That being said, you are wondering if you should learn Smarty. You'll need to learn Smarty if creating templates with Smarty. You don't really need to learn Smarty if you are just implementing the Smarty template engine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With