Re: Grails integration
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
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.
- "{'key1': 'abc', 'key2': 2}" is not a FreeMarker template, but a
FreeMarker expression.
- "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).
- I don't think the "x" notation for "VS" is widely recognized.
Yeah, people will figure it out at a point, but still...
> Best regards,
>
> Daniel.
>
> -------- Forwarded Message --------
>> From: Daniel Henrique Alves Lima
>> To: [email protected]
>> Subject: freemarker-tags docs
>> Date: Sat, 08 Jan 2011 20:21:26 -0200
>>
>> I'll update plugins portal later (my internet connection is horrible
>> today).
>>
>> http://grails-freemarker-tags-plugin.googlecode.com/svn/doc/manual/index.html
>>
>>
>> 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
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>
--
Best regards,
Daniel Dekany
------------------------------------------------------------------------------
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