Re: Grails integration
Daniel Henrique Alves Lima <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks, Daniel! I think i got it now: directive == method declaration/definition/implementation and tag == method call; or element vs. tag. I can't remember of doing this distinction when developing custom JSP Tag Libs, so i *think* this doesn't exist in GSP either. But it could be just a conceptual flaw in my understanding about GSP. How do you think i can rewrite this sentence to be correct and to be understandable by regular users? "This plugin exposes Grails Dynamic Tag Libraries as directives (or macros) and functions to FreeMarker template engine" Maybe something like "This plugin exposes Grails Dynamic Tag Libraries as libraries of directives and functions to FreeMarker template engine" ? Using the docs about JSP as reference, the previous sentence seems correct. "(...) JSP tags are just FreeMarker directives, nothing special, so you use FreeMarker syntax for calling them, not JSP syntax: <@html.form action="/query">... (...)" http://freemarker.sourceforge.net/docs/pgui_misc_servlet.html http://freemarker.sourceforge.net/docs/dgui_misc_namespace.html Best regards, Daniel Lima. On Sun, 2011-01-09 at 20:38 +0100, Daniel Dekany wrote: (...) > No. The distinction between an FTL tag and an FTL directive is the > same as the distinction between a HTML tag and a HTML element (because > those are not the same either). (...) > ------------------------------------------------------------------------------ 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