Re: Grails integration

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
I see. Thanks for the answer!


Sunday, December 26, 2010, 7:03:20 PM, Daniel Henrique Alves Lima wrote:

>         Hi, Daniel.
>
>         I don't know if i cant answer your questions, but i'll give a try:
>
>         Grails tag libs are just Groovy classes where each tag is a closure. A
> closure is something like a function that can be referenced (like C/C++
> function pointers or JavaScript functions). The tag library can also
> have a static property with its namespace (i'm not sure what happens
> when there is no namespace). 
>
> http://grails.org/Dynamic%20Tag%20Libraries
>
>
>         The plugin creates adapters to expose these tags as directives (using
> TemplateDirectiveModel) and functions (using TemplateMethodModelEx) to
> the freemarker engine. The new directives and functions are
> auto-imported in all .ftl used by Grails.
>
> http://freemarker.sourceforge.net/docs/app_faq.html#faq_implement_function_or_macro_in_java
>
>
>         This is an overview about how it works.
>
>         Best regards,
>
>
>                 Daniel.
>
>
> On Thu, 2010-12-23 at 15:51 -0200, Daniel Henrique Alves Lima wrote:
>>       Hi, Daniel. 
>> 
>>       My English skills are not great so i'm not sure if i could understand
>> your answer. Are you asking about "Grails Dynamic Tag Libs" and how the
>> plugin provides the integration between Freemarker and those tags? Or
>> are you asking about Grails plugin infraestructure in general? Or
>> anything else?
>>       I think i've missed your point (sorry about that) :-(
>>       Can you reformulate the question(s)?
>> 
>>       Thanks!
>> 
>> 
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> 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


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
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.