3 ms·
The JSP one looks cleaner, and more readable, even though both code-blocks now smell of taglib. > I tried really hard, but I failed to think of a single templa
by Isofarro 14y ago
The JSP one looks cleaner, and more readable, even though both code-blocks now smell of taglib.
> I tried really hard, but I failed to think of a single templating engine that's worse than JSP.
XSLT
- irahul 14y ago> The JSP one looks cleaner, and more readable, There is no accounting for taste. Importing taglibs for when and size, this monstrosity which is apparently an if condition(who would have known): <c:when test="${emails.unread != null && fn:size(emails.unread)}"> You have ${fn:size(emails.unread)} unread email(s)! </c:when> and it's not i18n'd yet. If it somehow looks cleaner to you, well, keep using it. > even though both code-blocks now smell of taglib. Groovy template has if tag built in. How does a simple if-else condition smell of taglib?