call java methods

"Enrique Rodríguez Lasterra" <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi all, i want to create some classes that should be configured for
designers on freemarker templates. This configurations are calls on java
method that normaly return void.

I know that i can call these methods with ${object.method(configPara,)} or
<#assign foo = object.method(configParam)/> but it's not very clear for
template programer.

In JSP world exists <% %> tags to do this kind of things, but i think this
is not possible on Freemarker, isn't it?

Why don't we have something like

<#execute>
    object.method(configParam);
    object.method2(configParam2);
</#execute>

Maybe it's a stupid question, but i'm a 4 years user of freemaker and i
think it could be util in some cases.

Regards.

-- 
_______________________________
Enrique Rodriguez Lasterra
lasterra AT javahispano DOT org
http://www.javahispano.org
Asociación sin ánimo de lucro sobre java
Spanish non profit association about java

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
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.