Comment 2 for bug 966001

Revision history for this message
Robert Lyon (robertl-9) wrote : Re: Switch templating system from dwoo to twig

The real question would be if we are to switch away from Dwoo - what would be the best option to switch to?

Things to consider would be:
1) The quality / robustness of the templating system we will be switching to
2) How easy / hard it will be to convert what we have to what we want
3) How compatible will it be with 3rd party plugins, and how easy will it be for 3rd parties to update their plugins.
4) What learning curve will be needed to learn the new templating system (for developers / designers / 3rd party)
5) How popular the new system is (will be around / maintained / updated in future)

Twig does look to be a good choice to cover points 1, 4, and 5
But something like Smarty v3 could be a better fit for all the above options.

From what I've read on forums the Twig templating system does run slightly faster in simple unit tests. However that may not be the case with the complexity of Mahara.

Then I've read that smarty3 can perform better than twig on certain unit tests - so who knows :)

With Smarty 3.1, it is a departure from 2.0 compatibility. Most notably, all
backward compatibility has been moved to a separate class file named
SmartyBC.class.php. If you require compatibility with 2.0, you will
need to use this class.