Re: [Freemarker-devel] Custom syntax and strict tag syntax
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
From: Jonathan R. <jre...@te...> - 2002-05-15 09:24:29
|
bre...@eu... wrote: > > On Tuesday, May 14, 2002, at 09:59 pm, Jonathan Revusky wrote: > >> Daniel Dekany wrote: >> >>> Tuesday, May 14, 2002, 10:07:51 PM, Daniel Dekany wrote: >>> >>>> Then... could I recommend to use something different character instead >>>> of '%', that was a very bad choice of mine. '<%' is commonly used for >>>> ASP and JSP, so it clash with that, if you generate such page. Also, >>>> most HTML editors waits the closing '%>', thus highlighting the whole >>>> HTML after the '<%' as "ASP"! So I recommend '@' instead. >>> >> >> I actually noticed this syntax highlighting happening in an editor >> with this syntax just today. So <% is not such a good idea, I guess. >> > > We could also capitalise on this syntax highlighting and use <%if ...%> My gut instinct is that it's better not to use the same syntax as JSP/ASP/Cold-fusion. There is some gain from reusing a familiar syntax, but I think the potential for confusion is a bigger disadvantage that outweighs that. Cheers, Jonathan |