Re: [FreeMarker-user] FW: crud screens and null.
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
|
From: Joel S. <jo...@me...> - 2006-05-09 15:25:59
|
> In other words, it would have been very useful to have some special
> notation to replace empty strings with default values.
Isn't this what macros and functions are for?
${cellify(xxx)}
Create your own function and isn't it that easy?
And this is likely a candidate for a general library of functions as
is being discussed on a different thread.
Freemarker is already very powerful, it seems to me we should be
careful of proliferation of syntax and take advantage of its existing
power.
|