content.txt
1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
!3 !-!contents-! with Graceful option
!include -seamless ContentsUsage
!3 Explicit Graceful Option
'''First create the parent page.'''
|script|
|start|Page Builder|
|line|I'm the parent|
|line|!-!contents -g-!|
|page|!-ParentPage-!|
!include -seamless ContentsTestsInclude
'''Then request the parent page.'''
|Response Requester.|
|uri|valid?|contents?|
|!-ParentPage-!|true||
'''...and examine the requested page to be sure that the child pages are included'''
!|Response Examiner.|
|type|pattern|matches?|
|contents|a href="ParentPage.FirstChild">First Child</a|true|
|contents|a href="ParentPage.SecondChild">Second Child</a|true|
!3 Indirect via REGRACE_TOC Variable
'''First create the parent page.'''
|script|
|start|Page Builder|
|line|I'm also the parent|
|line|!-!define REGRACE_TOC {true}-!|
|line|!-!contents-!|
|line|!-!define REGRACE_TOC {false}-!|
|page|!-ParentPage-!|
!include -seamless ContentsTestsInclude
'''Then request the parent page.'''
|Response Requester.|
|uri|valid?|contents?|
|!-ParentPage-!|true||
'''...and examine the requested page to be sure that the child pages are included'''
!|Response Examiner.|
|type|pattern|matches?|
|contents|a href="ParentPage.FirstChild">First Child</a|true|
|contents|a href="ParentPage.SecondChild">Second Child</a|true|