Forums / Cotonti / Development / Twig: modern template language

Kort
#25964 2010-09-07 15:18
In my opinion this is another extremity. Right now the balance between templates and plugins is ok. What cannot be done in tpl can be done in php and both capabilities are sufficient.
I do not see any reason why I should determine odd/even using the modulo with sed_build_oddeven. CONTAINS/HAS is also somewhat redundant and it seems like it is not needed at all. And I also do not think that adding stuff like nested operators improves overall performance and makes Cotonti more agile.
To me it looks like what happened to the forums: somebody just needed some features for some reason, brought them in and left it like that: ugly and inefficient.
Right now we've done one good thing: made Cotonti templates feature-rich to the extent that keeps it user-friendly. Although there are still a lot of questions regarding the use of IF/ELSE/ENDIF, these are mainly caused by the lack of documentation. But if you keep moving like this, the templates would get overloaded with the stuff that is normally pluginmaker's domain. So keep the balance please and do not rock the boat.
SED.by - создание сайтов, разработка плагинов и тем для Котонти