Changes for page Home

Last modified by Thomas Mortagne on 2023/10/03 16:06

From version 58.14
edited by Thomas Mortagne
on 2022/11/02 15:13
Change comment: There is no comment for this version
To version 58.16
edited by Thomas Mortagne
on 2022/11/02 15:15
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,9 +1,9 @@
1 1  {{groovy}}
2 2  if (request.input && request.input != '') {
3 - xdom = $services.rendering.parse(request.input, request.inputsyntax)
4 - result = $services.rendering.render(xdom, request.outputsyntax)
3 + xdom = services.rendering.parse(request.input, request.inputsyntax)
4 + result = services.rendering.render(xdom, request.outputsyntax)
5 5  
6 - return new org.xwiki.rendering.block.MacroBlock("code", ["language": request.outputsyntax], result, false)
6 + return new org.xwiki.rendering.block.MacroBlock("code", [:], result, false)
7 7  }
8 8  {{/groovy}}
9 9