line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Statocles::App::Plain; |
2
|
|
|
|
|
|
|
our $VERSION = '0.086'; |
3
|
|
|
|
|
|
|
# ABSTRACT: (DEPRECATED) Plain documents made into pages with no extras |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
3197
|
use Statocles::Base 'Class'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
6
|
|
|
|
|
|
|
extends 'Statocles::App::Basic'; |
7
|
1
|
|
|
1
|
|
6742
|
use Statocles::Util qw( derp ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
195
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
#pod =attr store |
10
|
|
|
|
|
|
|
#pod |
11
|
|
|
|
|
|
|
#pod The L<store|Statocles::Store> containing this app's documents. Required. |
12
|
|
|
|
|
|
|
#pod |
13
|
|
|
|
|
|
|
#pod =cut |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
before pages => sub { |
16
|
|
|
|
|
|
|
derp qq{Statocles::App::Plain has been renamed to Statocles::App::Basic and will be removed in 2.0. Change the app class to "Statocles::App::Basic" to silence this message.}; |
17
|
|
|
|
|
|
|
}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
#pod =method command |
20
|
|
|
|
|
|
|
#pod |
21
|
|
|
|
|
|
|
#pod my $exitval = $app->command( $app_name, @args ); |
22
|
|
|
|
|
|
|
#pod |
23
|
|
|
|
|
|
|
#pod Run a command on this app. Commands allow creating, editing, listing, and |
24
|
|
|
|
|
|
|
#pod viewing pages. |
25
|
|
|
|
|
|
|
#pod |
26
|
|
|
|
|
|
|
#pod =cut |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
before command => sub { |
29
|
|
|
|
|
|
|
derp qq{Statocles::App::Plain has been renamed to Statocles::App::Basic and will be removed in 2.0. Change the app class to "Statocles::App::Basic" to silence this message.}; |
30
|
|
|
|
|
|
|
}; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=pod |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=encoding UTF-8 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Statocles::App::Plain - (DEPRECATED) Plain documents made into pages with no extras |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 VERSION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
version 0.086 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SYNOPSIS |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
my $app = Statocles::App::Plain->new( |
51
|
|
|
|
|
|
|
url_root => '/', |
52
|
|
|
|
|
|
|
store => 'share/root', |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
my @pages = $app->pages; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 DESCRIPTION |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
B<NOTE:> This application has been renamed L<Statocles::App::Basic>. This |
59
|
|
|
|
|
|
|
class will be removed with v2.0. See L<Statocles::Help::Upgrading>. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This application builds simple pages based on L<documents|Statocles::Document>. Use this |
62
|
|
|
|
|
|
|
to have basic informational pages like "About Us" and "Contact Us". |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 store |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
The L<store|Statocles::Store> containing this app's documents. Required. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 METHODS |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head2 command |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
my $exitval = $app->command( $app_name, @args ); |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Run a command on this app. Commands allow creating, editing, listing, and |
77
|
|
|
|
|
|
|
viewing pages. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 AUTHOR |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Doug Bell <preaction@cpan.org> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
This software is copyright (c) 2016 by Doug Bell. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
88
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=cut |