example_code.txt

Steffen M├Ąchtel, 2018-12-07 17:02

Download (931 Bytes)

 
1
PageTypeSuffix:
2
    type: PageType
3
    default: .html
4
    index: 'home'
5
    map:
6
        .html: 0
7
        .json: 3
8
         
9
/home.html <f:uri.page pageType="0" />
10
/home.json <f:uri.page pageType="3" />
11
/home.html <f:uri.page pageType="5" />
12
expected result: /home.html?type=5
13

    
14
/home.html <f:uri.page additionalParams="{type: 0}" />
15
/home.json <f:uri.page additionalParams="{type: 3}" />
16
/home.html <f:uri.page additionalParams="{type: 5}" />
17
expected result: /home.html?type=5
18

    
19
/home.html?example=1&cHash=8cc81a0a7688c7c43a8c401d2ed62946 <f:uri.page additionalParams="{type: 0, example: 1}" />
20
/home.json?example=1&cHash=8cc81a0a7688c7c43a8c401d2ed62946 <f:uri.page additionalParams="{type: 3, example: 1}" />
21
/home.html?example=1&cHash=8cc81a0a7688c7c43a8c401d2ed62946 <f:uri.page additionalParams="{type: 5, example: 1}" />
22
expected result: /home.html?type=5&example=1&cHash=8cc81a0a7688c7c43a8c401d2ed62946