Monday, April 7, 2008

Unsexy Tags

The dreaded if-tag I mentioned in the previous post is here haunting me with its unsexyness.

Even though I have sexed up the template engine itself, the tags are not much better. Well, actually, the normal and simple tags, doing simple things like making text uppercase or lowercase - they are very nice indeed. But the more complex ones, like if-elseif-else will look horrible. I guess it's unavoidable, as the tags aren't actually designed to support multipart-tags.

Also, while I do get the foreach-loops done in an intuitive order, I fear the thought of how the variables will be implemented.

Be how it may, I'm somewhat convinced that the new template engine will be neater and perhaps a smidgen faster than the old implementation. Huzzah!

No comments: