You cannot use #parse to do that.
You must define bold.vm in the velocimacro.library properties before
executing the Velocity engine.
You could also insert the velocimacro directly into the template
foo.vm.
Regards
> You cannot use #parse to do that.
> You must define bold.vm in the velocimacro.library properties before
> executing the Velocity engine.
> You could also insert the velocimacro directly into the template
> foo.vm.
Thanks - I think i failed to add that - #bolder ('welcome john doe')
works perfectly ok in the example specified above.
What fails however is as follows...let us consider the example of a
vector of colors am printing out - and the colors can be
entered/maintained by the user....
i.e. the user maintains, red, blue, #bolder ('green'), black, #bolder
('yellow') - expecting that the list when printed, would contain the
text green and yellow in bold..(as per the macro behavior)
When velocity engine runs thru the list....it prints them as specified
by the user....however, we would rather that, velocity engine, wait for
the output, which would now contain, some more velocity templates/macro
references and do one-more pass...
Hope i made myself clear ?
--
Arvind