Wiki source code of TestMeta

Last modified by Helge Dahl on 2018/10/26 12:54
Show last authors
1 {{velocity}}**This is the entire contents of this document:**
2 #set ($content = $doc.getContent())
3 {{html clean="false"}}
4 $content
5 {{/html}}
6 #set ($pattern = $regextool.compile('\(%\s+class="jumbotron"\s+%\)\s+\(\(\(\s+\(%\s+class="container"\s+%\)\s+\(\(\(\s+(.+)\s+\)\)\)\s+\)\)\)'))
7 #set ($matcher = $pattern.matcher($content))
8 #if ($matcher.find())
9 **This is the regex match:**
10 #set ($parsed = $services.rendering.parse($matcher.group(1),"xwiki/2.1"))
11 #set ($result = $services.rendering.render($parsed, "plain/1.0"))
12 ##set ($res = $services.rendering.render($matcher.group(1), "html/4.01"))
13 $result
14 #else
15 #set ($crap = "crap")
16 $crap
17 #end{{/velocity}}
18
19 (% class="jumbotron" %)
20 (((
21 (% class="container" %)
22 (((
23 PayEx Checkout allows for styling customization of both [[Checkin>>doc:Main.ecommerce.technical-reference.consumers-resource.WebHome||anchor="HConsumer-view-styling"]] and [[Payment Menu>>doc:Main.ecommerce.technical-reference.payment-orders-resource.WebHome||anchor="HPaymentMenuStyling"]].
24 )))
25 )))