← Back to team overview

mahara-contributors team mailing list archive

[Bug 966001] 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.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/966001

Title:
  Switch templating system from dwoo to twig

Status in Mahara ePortfolio:
  In Progress

Bug description:
  Given that Dwoo is mostly unmaintained now:

    https://twitter.com/#!/seldaek/status/167546484865241088

  we should consider switching to Twig:

    http://twig.sensiolabs.org/

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/966001/+subscriptions


References