Trustmaster |
|
---|---|
Generally, I'd like to keep templates clear and simple, so I don't like the overcomplicated templates like Smarty.
But these simple conditional blocks is minimimal measure to make the templates by far more flexible. However, looking through the XTemplate code once again (I already did an investigation before, you can find results on Neocome in a topic called "Searching for a bottle neck"), I came to a conclusion that it is horribly coded. And we should thank god and PCRE author that it doesn't slow everything down too much. I doubt we can switch to any other template engine for two reasons: a) compatiblity with existing skins; b) XTemplate is one of the best block-style template engines from the usability point of view available on the net. But as soon as we have time for the task, XTemplate should be reengineered, keeping existing interface and behavior but using CPU time and RAM more efficiently. What I would like to see in this topic, is some opinions from our designers and skin makers about how comfortable this IF sequence is for them and how it could be improved by being more usable/easy for them. May the Source be with you!
|
|
Отредактировано: Trustmaster (14.03.2009 22:33, 16 лет назад) |