Wiki source code of TestMeta
Last modified by Helge Dahl on 2018/10/26 12:54
![]() |
2.1 | 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:** | ||
![]() |
5.1 | 10 | #set ($parsed = $services.rendering.parse($matcher.group(1),"xwiki/2.1")) |
![]() |
11.1 | 11 | #set ($result = $services.rendering.render($parsed, "plain/1.0")) |
![]() |
5.1 | 12 | ##set ($res = $services.rendering.render($matcher.group(1), "html/4.01")) |
13 | $result | ||
![]() |
2.1 | 14 | #else |
15 | #set ($crap = "crap") | ||
16 | $crap | ||
17 | #end{{/velocity}} | ||
18 | |||
19 | (% class="jumbotron" %) | ||
20 | ((( | ||
21 | (% class="container" %) | ||
22 | ((( | ||
![]() |
12.1 | 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"]]. |
![]() |
2.1 | 24 | ))) |
25 | ))) |