Re: Grails integration

Daniel Henrique Alves Lima <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
	Hi, Daniel.


On Sun, 2011-01-09 at 13:11 +0100, Daniel Dekany wrote:
> Saturday, January 8, 2011, 11:23:58 PM, Daniel Henrique Alves Lima wrote:
> 
> >         Hi, everybody.  
> >
> >         Please, let me know if there is any misuse of FreeMarker terms and
> > concepts. Like i've said before, i'm no FreeMarker expert.
> 
> Some observations regarding the "Syntax tips (GSP x FTL)" page:
> 
> - You should tell/demonstrate this (and you can copy-paste this if you
>   want to):
> 
>     Parameter values are (arbitrary complex) expressions that are not
>     quoted. So assuming you want to pass an integer to foo, <@foo
>     bar=1 /> is good, but <@foo bar="1" /> is wrong as it passes in
>     the value as a string (because "1" is a string literal, just like
>     in Groovy). For the same reason, <@foo bar=x+1 /> is good, but
>     <@foo bar="${x+1}" /> does something else.
> 
>   Not realizing this is by far the most frequent source of confusion
>   with FreeMarker.

Ok.

> 
> - "{'key1': 'abc', 'key2': 2}" is not a FreeMarker template, but a
>   FreeMarker expression.


Sorry about that. It intended to be "in a FreeMarker template" and "in a
Groovy Server Page" or something like that.


> 
> - "Tags x Directives". I don't know what the GSP terminology is, but
>   following the SGML terminology, this is a tag: "<foo>", also this is
>   a tag: "</foo>", but both refers to the "foo" element. Similarly, what
>   you show there is a FreeMarker tag, which refers to a FreeMarker
>   directive. Now if GSP guys really call their function-like thins
>   tags (as opposed to the syntactical feature that they are using to
>   call them), then your title makes sense (and then the GSP terminology
>   is flawed).

In FreeMarker, Is an user-directive equivalent to a tag? I really don't
know when i should use one terminology and when i should use another.

> 
> - I don't think the "x" notation for "VS" is widely recognized.
>   Yeah, people will figure it out at a point, but still...

It makes sense. I'll fix this.

	Thanks!


Best regards,

		Daniel.




------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.