Re: Grails integration
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Sunday, January 9, 2011, 2:03:06 PM, Daniel Henrique Alves Lima wrote: [snip] >> - "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? [snip] 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). So, an FTL tag is the piece of source code that you are using to mark where and how do you want to *use* (typically, to call) a directive, while the directive is what you are using (like calling). With a Java language analogy, it's like a method call VS a method. -- 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