You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bs...@bluedolphin.com on 2001/03/30 17:04:28 UTC

Question/Idea

I understand that their maybe  other ways to address this issue, but what
do people think about adding something like the following to Velocity?

#macro(macroWithArgs, $arg1, $arg2)
     ...
#end


#macroWithArgs($arg1):
  #arg2
     VM VTL code
  #end
#end


I think that this allows for greater flexibility in the template lib. model
and in the construction of presentation widgets. The idea is to be able to
be able to do things like pass row definitions to table widgets more easily
(and in-line). I am new to this list so I don't know if this has been
talked about or if there is a better way to do this? What are peoples
thoughts?


Re: Question/Idea

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
bsaller@bluedolphin.com wrote:
> 
> I understand that their maybe  other ways to address this issue, but what
> do people think about adding something like the following to Velocity?

What issue?

> 
> #macro(macroWithArgs, $arg1, $arg2)
>      ...
> #end
> 
> #macroWithArgs($arg1):
>   #arg2
>      VM VTL code
>   #end
> #end

What are you trying to say here?  Macro's already can have args....  see
the Users guide...

> I think that this allows for greater flexibility in the template lib. model
> and in the construction of presentation widgets. The idea is to be able to
> be able to do things like pass row definitions to table widgets more easily
> (and in-line). I am new to this list so I don't know if this has been
> talked about or if there is a better way to do this? What are peoples
> thoughts?

Again, don't quite understand what problem you are addressing.

geir

-- 
Geir Magnusson Jr.                               geirm@optonline.net
Developing for the web?  See http://jakarta.apache.org/velocity/