Re: [Freemarker-devel] Ideal tag syntax; what's your take on it?
Daniel Henrique Alves Lima <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user,gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Daniel.
Some quick answers below. I'll re-read to this email later and answer it
properly (I have the multitasking ability of a Windows 3.11 :-P).
Daniel Dekany wrote:
> Thursday, June 9, 2011, 10:41:04 PM, Daniel Henrique Alves Lima wrote:
>
>
> Agreed in these directions...
>
> What's your take on the [.../] thing? I have seen you like to write
> [#include "..." /] and like, that is, you like to put that "/" there
> even if it's not strictly necessary. That also means that you know
> what it would be like if it's required. How annoying is that for you?
>
It's automatic. But I'm a freak. I write <br /> even in a non-well
formed html :-)
> I mean, would it be better if you don't have to enter any extra chars
> if there's no nested content, instead you had to type two extra charts
> when there is (two, because one in the start-tag, and another int the
> end-tag).
>
> Also, you have mentioned Velocity. Was its *syntax* better or worse?
> First of all, the look and feel of it. Then, which features you hated
> and which did you like (over FTL)?
I'll take some time to answer this one. It was a loooooooooooooong time
ago (maybe 3 years?). I barely remember how Velocity looks like.
> (Like, is the ability to write $foo
> instead of ${foo} good or bad at the end?)
>
>
I wrote some (many?) shell scripts. So I have some issues about $foo (I
prefer ${foo}). But as I've said before, I'm a freak. I write
%WINDOWS_ENV_VAR% :-)
If my memory is not failing $foo was specially annoying in Velocity. I'm
just trying to remember why...
My answers were mostly useless :-|
I'm not particularly comfortable with the syntax of JSP and GSP:
http://www.grails.org/doc/latest/guide/6.%20The%20Web%20Layer.html#6.2%20Groovy%20Server%20Pages
<img src="<g:createLinkTo dir="images" file="logo.jpg" />" />
But is there a better way of writing a call to a function using named parameters/args?
<img src="${createLinkTo(dir:'images', file:'logo.jpg')}" />
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev