Robert Koberg wrote:
Can freemarker code exist in an XML document and still be well formed?
I looked at a few doc pages until I saw this:
<#if loggedIn >...</#if>
In the most current version, implemented in CVS in the last few days,
you can write:
[#if loggedIn]...[/#if]
I already answered this because I'm reading backwards.
But really, why do you feel a need for a raw template to be well formed
XML? Isn't it the output that matters? If you were using FreeMarker or
Velocity to generate a Java source file, would you expect the raw
template to be compilable java code? (If it were, that would be quite
surprising.)
(This was discussed on our list recently. The only real reason that
people had for wanting the alternative syntax, which I did implement,
was because they wanted to edit the templates in certain editors. It's a
tools impedance mismatch thing.)
Jonathan Revusky
--
lead developer, FreeMarker project http://freemarker.org
Velocity-FreeMarker comparison page: http://freemarker.org/fmVsVel.html
what is that?
-Rob
Jonathan Revusky wrote:
sgtmcd wrote:
Will Glass-Husain wrote:
Ah, hi Jonathan how are you?
I think we discussed this issue extensively last time Jonathan was
on the
last a couple of years ago. Perhaps I might suggest the rest of the
Velocity community just refuse to be baited and stick to the topic
at hand?
(basically, ignore the temptation to have the last word).
As I remember, the topic was how new community members can help out.
Cheers,
WILL
[snip]
Cooler heads always prevail. I hadn't heard of freemarker until today.
Interesting.
I have too much already written in velocity and it all works.
You know, frankly, if you're in the market for a certain category of
thing, it makes some sense to survey what's out there.
It's funny about software. You know, in a regular market, how many
people buy the first item they come across without any comparison
shopping? Like, the very first car they ever test drove. "Well,
everything I tried to do in the car worked -- turning left, turning
right, reversing etcetera. So, I didn't look at anything else. I
bought it. A great car."
Yet this seems to be the norm in software.
there are things I would like to have better, so I decided to
volunteer my time.
In a way, that's to be commended. But isn't volunteering one's time to
add features still something of a last resort? Shouldn't one first
survey the space and see if another tool *already* does what you want?
Or, put from another perspective, is there that much merit in
re-inventing the wheel?
I am digging through the wiki and source and will try my hand at
getting a patch done to fix an issue.
Velocity seemed dead to me, but still viable. It is highly
recommended in many j2ee/spring framework documents/books. In a
feature comparison, it does seem freemarker has a few more features.
However, what I couldn't do in the template, I did in my controller
and stuffed into the model. Not elegant, but it worked.
I am not one to let anyone give me the run around. I like to get
things done and see velocity as another great tool.
I don't really want to sound like such a mean guy, Shawn. But how on
earth do you know it's a great tool? By your own admission, you did
not know of the existence of FreeMarker -- probably Velocity's most
important competitor -- until today. So you did no survey of the
alternatives in this space. You have nothing to compare it to, yet
you're willing to say it's a great tool.
If a Honda Civic was the only car you had ever driven, would you say
it was a great car? If so, on what basis?
Are you saying it's a great tool because there are these books that
write about it -- so it must be, even though you never compared it to
anything else? Or are you saying it's a great tool because you're
trying to win points with the people on this list?
I don't like picking on you because I'm so aware that this kind of
thing is just typical. It's not you.
Is there any other field where people behave like this?
Jonathan Revusky
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]