Thanks for the response, Geir. Also still mid-thread on this one. See below.
Donnie >>The only downside is that this could be damn confusing for people to read if they aren't familiar with the idea.<< I'm not sure about that. View designers are used to <whatever attr1="value1" attr2="value2" ... /> >>> Well, hold on for a sec. Since the #macro() definition has positional parameters, then I think that the way to invoke is #form( "uploadForm" "/upload.do" ) (in the case where you want the default enctype...) Another approach is to add an argument entity 'pair' where something like #form( $name="uploadForm" ) Simply stuffs "uploadForm" into the context behind the key 'name' for that invocation of the VM and there are no real args. This seems to need a bit of fleshing out - how to you handle when someone doesn't send in a required value? It can be enforced with positional params, but not sure with 'pair' parameters... <<< I'd want to be able to call the macros using name-value at any time, even for required arguments which could be passed positionally. I just think it's more readable, especially in the case where you do pass lots of optional arguments. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
