Re: About Freemarker and Velocity
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Friday, May 16, 2008, 3:58:48 PM, kukudas wrote:
> Hi everybody,
>
> i'm kinda new to this stuff and i read alot till yet. I've found a
> source on wikipedia
> http://en.wikipedia.org/wiki/Template_engine_(web) source where
> several template engines are being compared and i have notice that
> in the Error/Exception Part Freemarker is marked as "No" and
> Velocity as "Yes". From what ive read till now i understanded it
> like Freemarker has a much better Exception handling then Velocity
FreeMarker has better error messages than Velocity. Also FreeMarker
treats some ambiguous situations as errors rather than try guessing
(most notably it treats ${missingVariable} as an error, rather than
printing the whole dollar stuff as is). FreeMarker has more
sophisticated in-template error handling, such as providing default
values (${maybeMissing!"The default"}) or attempt/recover blocks.
> so this Comparing table might be wrong or maybe do i understand
> something wrong.
I have no idea what they mean with "Errors & Exceptions"... They don't
explain it, so no other reads will know either. Whatever it is, we
most certainly have it, if even Velocity and WebMacro have it. So I
have changed it to "Yes".
> Ive done myself some beginner tests with those two template engines where i
> encountered that velocity didn't help me really finding the cause of an
> exception which in the other hand freemarker did very well.
>
> maybe someone can light this up for me, i would appreaciate it.
> regards kuku
--
Best regards,
Daniel Dekany
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/