I used Smarty a long time ago, I would recommend that you do not need to use the Template Engine. Smarty slows down the whole system, because its main source code is very complex and somehow unnecessary. If I had a recommendation on the Engine pattern, I would say:
1) Use a basic and lightweight template engine, such as XTemplate . I'm not sure if it is still developing, but it is really useful, all in one class file, ready to use. The syntax is also clear and sweet.
2) Write your own template engine so that you can configure it yourself that best suits your current system.
But, however, for a tiny and small project (less than 5-7 pages), in which you can control everything, then using the Engine template is probably not necessary.
user743234
source share