Details
-
New Feature
-
Resolution: Fixed
-
Major
-
2.4 M1
-
None
-
Unit
-
Unknown
-
Description
That's very useful for some use case where you already have the block and you don't want to serialize them for them to be parsed back just after script execution. It also make escaping a lot easier in some use cases: no need to do any escaping, just use plain/1.0 parser and return blocks.
Here is an example of how to use it in groovy (it actually totally depends of the language and its engine):
{{groovy}} return new org.xwiki.rendering.block.WordBlock("word") {{/groovy}}