Returning a list with name/value pair parameters

Chris <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Is it possible to return a List / TemplateSequenceModel from code that 
accepts parameters formatted as name / value pairs?

Here's what I want to do:

<#assign myList = myMethod(param0="value" param1="value")>

or

<#assign myList = <@myMethod param0="value" param1="value"/> >

The trouble with the first example is that the TemplateMethodModel above 
only accepts positional parameters, not name/value pairs.

The trouble with the second example is that I don't think this syntax works.

The reason I want name/value pairs is that the parameters are definitely 
going to change over time, and it's a lot easier to be backwardly 
compatible when you use them. You can add new ones and ignore old ones 
without a problem. With positional parameters, you're stuck.


------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
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.