| Redirection Notice This page should redirect to http://www.adaptavist.com/pages/viewpage.action?pageId=55574727. |
Description/Features
Allows replacements to be made within a block of wiki markup
Allows replacements to be made within a block of wiki markup
Usage
{replace-and-render}
{replace-body}{div:align=%alignment%}this is some text{div}{replace-body}
{replace-item:%alignment%}center{replace-item}
{replace-and-render}
Examples
{replace-and-render}
{replace-body}{%mymacro%}this is the replace body with a %replaceme%{%mymacro%}{replace-body}
{replace-item:%replaceme%}replacement{replace-item}
{replace-item:%mymacro%}center{replace-item}
{replace-and-render}
{velocity-render:parameter=value}
#set($varible="value")
variable = $variable
parameter = $parameter
#foreach($a in ['a','b','c'])
$velocityCount : $a </br>
#end
...etc...
{velocity-render}


Comments (5)
Nov 05, 2010
Klaus Feldmann says:
Hi, i just do some testing on your plugins I wonder what this plugin is good for...Hi,
i just do some testing on your plugins I wonder what this plugin is good for.
Could you please describe and give an example.
Thanks, Cheers
Nov 23, 2010
Keith Brophy says:
Hi Klaus, The best example I can think of is when you might want the output of ...Hi Klaus,
The best example I can think of is when you might want the output of one macro to be used as the input for another macro. By using replace-n-render, you can do this on the page without having to modify the actually plugin/macro source code.
There are some examples noted in the Atlassian forums - I believe this entry might help further explain a use case.
Regards,
Keith
Dec 08, 2010
Klaus Feldmann says:
Thanks for your reply and the link. That did help. I used to cascade macros, but...Thanks for your reply and the link. That did help. I used to cascade macros, but it seems to be shorter to use replace and render and I can combine it with some scaffold macros too, which I could not bend to bring up results as I wanted. Is there a place where I could find more examples of usage?
Dec 09, 2010
Keith Brophy says:
I think the forums contain more usage examples/questions - but we could look at ...I think the forums contain more usage examples/questions - but we could look at adding further examples on our documentation page.
May 03, 2011
Klaus Feldmann says:
cant live without it anymore. Thanks for this genius tool. Now I will find out ...cant live without it anymore. Thanks for this genius tool.
Now I will find out what velocity renderer can do for me.