Why is Smarty used as a template engine? [closed]
There are many question about template engines. Smarty is most popular. I have seen comparisons here and here.
Smarty uses memory and not fast. Why is Smarty used as a template engine? I'm confused about how to choose a template engine.
PHP is a templating engine in its own right.
The reason to use something like Smarty or Twig usually breaks down to allowing untrusted users to edit the template files, without risking php errors or mischievous behavior.
The "best" product (the one that is the widely used) is not always the one with the best code quality, best by performance, best by memory consuming.
But the best product often is the one which has been developed earlier, which has better marketing, better documentation, better community, etc.
精彩评论