logo       

Re: html macro library: msg#00189

jakarta.velocity.user

Subject: Re: html macro library

Kevin said:
...
> My experiments to start such a library seem doomed as I would really
> need to be able to applied recursively so as to embed one tag in
> another.

your experiments are doomed if you believe everything you're told without ever
questioning it. there are ways:

#macro( feedmetome $foo )this is $foo#end
#macro( recursor )
#if( $i < 10 )
#set( $i = $i + 1 )
recursing #recursor()
#end
#end

#set( $bar = "#feedmetome( 'bar' )" )
#feedmetome( "#feedmetome( $bar )" )
#set( $i = 1 )
#recursor()

but use Freemarker if it better suits your needs.

Nathan Bubna
nathan@xxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise