Debian Codegraph @

t/lib/TestApp_autorunmode.pm

raw symbols SCIP
1
2 package TestApp_autorunmodescip-perl cpan Test-WWW-Mechanize-CGIApp 0.05 TestApp_autorunmode/;
3
4 use warningsscip-perl cpan Test-WWW-Mechanize-CGIApp 0.05 warnings/;
5 use strictscip-perl cpan Test-WWW-Mechanize-CGIApp 0.05 strict/;
6
7 use basescip-perl cpan Test-WWW-Mechanize-CGIApp 0.05 base/ qw( CGI::Application );
8
9 use CGI::Application::Plugin::AutoRunmodescip-perl cpan Test-WWW-Mechanize-CGIApp 0.05 CGI/Application/Plugin/AutoRunmode/;
10
11 ################################################################
12 #
13 # run modes
14 #
15 #################################################################
16
17 sub welcomescip-perl cpan Test-WWW-Mechanize-CGIApp 0.05 TestApp_autorunmode/welcome(). : StartRunmode {
18 my $self = shiftscip-perl cpan Test-WWW-Mechanize-CGIApp 0.05 TestApp_autorunmode/shift().;
19
20 my $content = <<EOC;
21 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
22 <html>
23
24 <head>
25 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
26 <title>Welcome</title>
27 </head>
28
29 <body>
30
31 Home is where....
32
33 </body>
34
35 </html>
36 EOC
37
38 return $content;
39 }
40
41 sub helloscip-perl cpan Test-WWW-Mechanize-CGIApp 0.05 TestApp_autorunmode/hello(). : Runmode {
42 my $self = shiftscip-perl cpan Test-WWW-Mechanize-CGIApp 0.05 TestApp_autorunmode/shift().;
43 my $content = <<EOC;
44 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
45 <html>
46
47 <head>
48 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
49 <title>Hello</title>
50 </head>
51
52 <body>
53
54 Hello world!
55
56 <a href="/?rm=whoopee">Whoopee</a>
57 <a href="/TestApp/whoopee">Whoopee_dispatch</a>
58
59 </body>
60
61 </html>
62 EOC
63
64 return $content;
65 }
66
67 sub whoopeescip-perl cpan Test-WWW-Mechanize-CGIApp 0.05 TestApp_autorunmode/whoopee(). : Runmode {
68 my $content = <<EOC;
69 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
70 <html>
71
72 <head>
73 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
74 <title>Whoopee</title>
75 </head>
76
77 <body>
78
79 Whoopee!
80
81 </body>
82
83 </html>
84 EOC
85
86 return $content;
87 }
88 1;