7 use Catalyst::Test 'ESITest';
10 qr{SubInclude test: will include /time_include using default plugin Catalyst::View::Component::SubInclude::Visit<br/>
11 Current time is: [\w\s:]+ --> \| foo = bar \|\s*
13 Current time is: [\w\s:]+ --> Capture Arg: test\| baz = quux \|\s*
17 Test subinclude using specific plugins:<br/>
18 Current time is: [\w\s:]+ --> \| plugin = SubRequest \|\s*
20 Current time is: [\w\s:]+ --> \| plugin = Visit \|\s*
22 <!--esi <esi:include src="/time\?plugin=ESI" /> --><br/>
23 <!--#include virtual="/time\?plugin=SSI" --><br/>
28 Test CaptureArgs and Args interaction \(SubRequest\):<br/><br/>
30 Current time is: [\w\s:]+ --> Capture Arg: capture_argtest \| query_arg = val \| Action Arg: regular_arg\s*
32 \(using: http://localhost/capture_argtest/time/regular_arg\?query_arg=val\)<br/>
35 Current time is: [\w\s:]+ --> \| query_arg = val \| Action Arg: regular_arg\s*
37 \(using: http://localhost/time/regular_arg\?query_arg=val\)<br/>
41 Test CaptureArgs and Args interaction \(Visit\):<br/><br/>
43 Current time is: [\w\s:]+ --> Capture Arg: capture_argtest \| query_arg = val \| Action Arg: regular_arg\s*
45 \(using: http://localhost/capture_argtest/time/regular_arg\?query_arg=val\)<br/>
48 Current time is: [\w\s:]+ --> \| query_arg = val \| Action Arg: regular_arg\s*
50 \(using: http://localhost/time/regular_arg\?query_arg=val\)<br/>
54 Test CaptureArgs and Args interaction \(ESI\):<br/><br/>
56 <!--esi <esi:include src="/capture_argtest/time/regular_arg\?query_arg=val" /> --><br/>
57 \(using: http://localhost/capture_argtest/time/regular_arg\?query_arg=val\)<br/>
60 <!--esi <esi:include src="/time/regular_arg\?query_arg=val" /> --><br/>
61 \(using: http://localhost/time/regular_arg\?query_arg=val\)<br/>
65 Test CaptureArgs and Args interaction \(SSI\):<br/><br/>
67 <!--#include virtual="/capture_argtest/time/regular_arg\?query_arg=val" --><br/>
68 \(using: http://localhost/capture_argtest/time/regular_arg\?query_arg=val\)<br/>
71 <!--#include virtual="/time/regular_arg\?query_arg=val" --><br/>
72 \(using: http://localhost/time/regular_arg\?query_arg=val\)<br/>
76 Test Args when Chained is not being used:
77 Current time is: [\w\s:]+ --> \| query_arg = val \| No Chained Args: regular_arg1, regular_arg2
79 \(using: http://localhost/time_args_no_chained/regular_arg1/regular_arg2\?query_arg=val\)<br/>