Re: A simple macro replacement with user directives

2008-03-08 Thread Jonathan Revusky
Nathan Bubna wrote: #callBlock(collapsibleSection {isCollapsed:$collapsed, title:My Section}) My section content. #end Where your collapsibleSection.vm file could look like this: tablethtd$args.title/td/th #if($args.open) #content() #end /table #end Where the #content()

Re: A simple macro replacement with user directives

2008-03-08 Thread Jonathan Revusky
Deinhammer, Guido wrote: Hi, I followed the discussion here on Macros - and thought you might be interested in what I have done to overcome most of their shortcomings. As mostly a casual observer here, I found it fascinating. My initial reaction, though, is that, pragmatically speaking, does

Re: A simple macro replacement with user directives

2008-03-06 Thread Nathan Bubna
On Wed, Mar 5, 2008 at 11:51 PM, Claude Brisson [EMAIL PROTECTED] wrote: Le mercredi 05 mars 2008 à 12:13 -0800, Nathan Bubna a écrit : #snip() interesting. seems like new ideas are starting to pop up. :) i have one i'm excited about, but i'm not quite ready to put it out there for

Re: A simple macro replacement with user directives

2008-03-06 Thread Nathan Bubna
9:00 PM To: Velocity Developers List Subject: Re: A simple macro replacement with user directives Guido, Deinhammer, Guido wrote: I understand my writing turned out a little lengthy, but if you are using macros, it should be worth the read... It definitely is. Thanks

Re: A simple macro replacement with user directives

2008-03-05 Thread Christopher Schultz
Guido, Deinhammer, Guido wrote: I understand my writing turned out a little lengthy, but if you are using macros, it should be worth the read... It definitely is. Thanks for investigating /and providing code/! The second parameter is a map that is added to the context under the name args -

Re: A simple macro replacement with user directives

2008-03-05 Thread Claude Brisson
Le mercredi 05 mars 2008 à 12:13 -0800, Nathan Bubna a écrit : On Wed, Mar 5, 2008 at 5:53 AM, Deinhammer, Guido [EMAIL PROTECTED] wrote: Hi, I followed the discussion here on Macros - and thought you might be interested in what I have done to overcome most of their shortcomings.