| 1 |
|
| 2 |
App/Command/new.pm,73 |
| 3 |
package Poet::App::Command::new;1,0 |
| 4 |
my $description description11,486 |
| 5 |
|
| 6 |
App/Command/script.pm,40 |
| 7 |
package Poet::App::Command::script;1,0 |
| 8 |
|
| 9 |
App/Command.pm,32 |
| 10 |
package Poet::App::Command;1,0 |
| 11 |
|
| 12 |
App.pm,23 |
| 13 |
package Poet::App;1,0 |
| 14 |
|
| 15 |
Cache.pm,25 |
| 16 |
package Poet::Cache;1,0 |
| 17 |
|
| 18 |
Conf.pm,24 |
| 19 |
package Poet::Conf;1,0 |
| 20 |
|
| 21 |
Environment/Generator.pm,42 |
| 22 |
package Poet::Environment::Generator;1,0 |
| 23 |
|
| 24 |
Environment.pm,70 |
| 25 |
package Poet::Environment;1,0 |
| 26 |
my ($current_env)($current_env15,300 |
| 27 |
|
| 28 |
Import.pm,26 |
| 29 |
package Poet::Import;1,0 |
| 30 |
|
| 31 |
Log.pm,23 |
| 32 |
package Poet::Log;1,0 |
| 33 |
|
| 34 |
Manual/Intro.pod,78 |
| 35 |
webserver. The C<use Poet::Script> line does several things:things106,2499 |
| 36 |
|
| 37 |
Manual/Subclassing.pod,510 |
| 38 |
use Poet::Moose;27,643 |
| 39 |
Poet will automatically detect,37,847 |
| 40 |
it needs a classname,39,1005 |
| 41 |
use Poet::Moose;49,1241 |
| 42 |
then your Mason subclasses will be autodetected as well,54,1298 |
| 43 |
package MyApp::Mason::Interp;56,1361 |
| 44 |
use Moose;57,1395 |
| 45 |
use Config::INI;73,1738 |
| 46 |
use Moose;74,1759 |
| 47 |
use Moose;85,2027 |
| 48 |
use Moose;101,2368 |
| 49 |
use Log::Any::Adapter;111,2621 |
| 50 |
use Log::Dispatch;112,2648 |
| 51 |
use Moose;113,2671 |
| 52 |
use Poet::Moose;125,2947 |
| 53 |
method provide_dbh 128,3001 |
| 54 |
|
| 55 |
Manual/Tutorial.pod,1520 |
| 56 |
package Blog::DB;94,2834 |
| 57 |
use strict;96,2879 |
| 58 |
use warnings;97,2895 |
| 59 |
__PACKAGE__->use_private_registry;use_private_registry100,2942 |
| 60 |
package Blog::Article;110,3177 |
| 61 |
use Blog::DB;111,3204 |
| 62 |
use strict;112,3222 |
| 63 |
use warnings;113,3238 |
| 64 |
database 137,3784 |
| 65 |
my $value 150,4344 |
| 66 |
You can also import sets of utilities in the same way,152,4391 |
| 67 |
Given a URL,168,5150 |
| 68 |
decides the overall page layout,170,5279 |
| 69 |
rm 179,5599 |
| 70 |
Three new pieces of syntax here:here233,7410 |
| 71 |
3 my $date_fmt 273,8617 |
| 72 |
everywhere. And of course,336,11015 |
| 73 |
4 <link rel=343,11250 |
| 74 |
4 method handle 371,12185 |
| 75 |
Other than the 'package' and 'use Moose' lines that are generated by Mason,387,12869 |
| 76 |
a C<.mc> component containing a single C<< <%class> >> block,389,13027 |
| 77 |
page component,393,13213 |
| 78 |
On line 4 we define a C<handle> method to validate the POST parameters,395,13289 |
| 79 |
the article,396,13368 |
| 80 |
top-level page components;398,13511 |
| 81 |
rendering anything,400,13663 |
| 82 |
On lines 7 and 410,14117 |
| 83 |
place. In this case,450,15591 |
| 84 |
Mason has a few built-in filters,454,15734 |
| 85 |
Mason has a few built-in filters, and others are provided in plugins;454,15734 |
| 86 |
use strict;483,16774 |
| 87 |
use warnings;484,16790 |
| 88 |
several things:things487,16885 |
| 89 |
use Blog::Article::Manager;521,17718 |
| 90 |
use strict;522,17750 |
| 91 |
use warnings;523,17766 |
| 92 |
my $days_to_keep 525,17789 |
| 93 |
my $min_date 526,17854 |
| 94 |
In line 530,18028 |
| 95 |
In line 532,18079 |
| 96 |
In line 7, we get C<$days_to_keep> from configuration,532,18079 |
| 97 |
|
| 98 |
Mason/Plugin/Compilation.pm,46 |
| 99 |
package Poet::Mason::Plugin::Compilation;1,0 |
| 100 |
|
| 101 |
Mason/Plugin/Request.pm,42 |
| 102 |
package Poet::Mason::Plugin::Request;1,0 |
| 103 |
|
| 104 |
Mason/Plugin.pm,33 |
| 105 |
package Poet::Mason::Plugin;1,0 |
| 106 |
|
| 107 |
Mason.pm,55 |
| 108 |
package Poet::Mason;1,0 |
| 109 |
my $instance;instance10,153 |
| 110 |
|
| 111 |
Moose.pm,70 |
| 112 |
package Poet::Moose;1,0 |
| 113 |
sub init_meta Poet::Moose::init_meta11,269 |
| 114 |
|
| 115 |
Plack/Request.pm,34 |
| 116 |
package Poet::Plack::Request;1,0 |
| 117 |
|
| 118 |
Plack/Response.pm,35 |
| 119 |
package Poet::Plack::Response;1,0 |
| 120 |
|
| 121 |
Script.pm,26 |
| 122 |
package Poet::Script;1,0 |
| 123 |
|
| 124 |
Server.pm,26 |
| 125 |
package Poet::Server;1,0 |
| 126 |
|
| 127 |
t/App.pm,93 |
| 128 |
package Poet::t::App;1,0 |
| 129 |
sub test_app_name_to_dir Poet::t::App::test_app_name_to_dir8,113 |
| 130 |
|
| 131 |
t/Conf.pm,455 |
| 132 |
package Poet::t::Conf;1,0 |
| 133 |
my $conf_files conf_files10,129 |
| 134 |
my $expected_values expected_values19,492 |
| 135 |
sub test_global Poet::t::Conf::test_global30,632 |
| 136 |
sub test_duplicate Poet::t::Conf::test_duplicate39,915 |
| 137 |
sub test_set_local Poet::t::Conf::test_set_local51,1279 |
| 138 |
sub test_dot_notation Poet::t::Conf::test_dot_notation81,2324 |
| 139 |
sub test_types Poet::t::Conf::test_types145,3943 |
| 140 |
sub test_layer_required Poet::t::Conf::test_layer_required183,5213 |
| 141 |
|
| 142 |
t/Environment.pm,102 |
| 143 |
package Poet::t::Environment;1,0 |
| 144 |
sub test_environment Poet::t::Environment::test_environment11,186 |
| 145 |
|
| 146 |
t/Import.pm,280 |
| 147 |
package Poet::t::Import;1,0 |
| 148 |
my ( $temp_env, $importer )( $temp_env, $importer 8,116 |
| 149 |
sub test_valid_vars Poet::t::Import::test_valid_vars15,233 |
| 150 |
sub test_import_vars Poet::t::Import::test_import_vars19,343 |
| 151 |
sub test_import_methods Poet::t::Import::test_import_methods30,686 |
| 152 |
|
| 153 |
t/Log.pm,84 |
| 154 |
package Poet::t::Log;1,0 |
| 155 |
sub test_log_config Poet::t::Log::test_log_config13,201 |
| 156 |
|
| 157 |
t/PSGIHandler.pm,741 |
| 158 |
package Poet::t::PSGIHandler;1,0 |
| 159 |
my $poet env14,261 |
| 160 |
sub mech Poet::t::PSGIHandler::mech18,392 |
| 161 |
sub add_comp Poet::t::PSGIHandler::add_comp24,506 |
| 162 |
sub try_psgi_comp Poet::t::PSGIHandler::try_psgi_comp33,773 |
| 163 |
sub test_get_pl Poet::t::PSGIHandler::test_get_pl74,2027 |
| 164 |
sub test_basic Poet::t::PSGIHandler::test_basic85,2353 |
| 165 |
sub test_error Poet::t::PSGIHandler::test_error94,2568 |
| 166 |
sub test_not_found Poet::t::PSGIHandler::test_not_found104,2803 |
| 167 |
sub test_args Poet::t::PSGIHandler::test_args112,3015 |
| 168 |
sub test_abort Poet::t::PSGIHandler::test_abort144,3565 |
| 169 |
sub test_import Poet::t::PSGIHandler::test_import179,4412 |
| 170 |
sub test_visit Poet::t::PSGIHandler::test_visit203,4870 |
| 171 |
sub test_cache Poet::t::PSGIHandler::test_cache238,5445 |
| 172 |
|
| 173 |
t/Run.pm,127 |
| 174 |
package Poet::t::Run;1,0 |
| 175 |
sub test_run Poet::t::Run::test_run13,229 |
| 176 |
sub is_port_active Poet::t::Run::is_port_active41,1145 |
| 177 |
|
| 178 |
t/Script.pm,126 |
| 179 |
package Poet::t::Script;1,0 |
| 180 |
my $script_template;script_template16,304 |
| 181 |
sub test_script Poet::t::Script::test_script18,326 |
| 182 |
|
| 183 |
t/Util.pm,96 |
| 184 |
package Poet::t::Util;1,0 |
| 185 |
my $poet env11,214 |
| 186 |
sub test_debug Poet::t::Util::test_debug13,284 |
| 187 |
|
| 188 |
Test/Util.pm,331 |
| 189 |
package Poet::Test::Util;1,0 |
| 190 |
sub write_conf_file Poet::Test::Util::write_conf_file18,375 |
| 191 |
sub temp_env Poet::Test::Util::temp_env28,658 |
| 192 |
sub temp_env_dir Poet::Test::Util::temp_env_dir47,1209 |
| 193 |
sub initialize_temp_env Poet::Test::Util::initialize_temp_env66,1775 |
| 194 |
sub build_test_mech Poet::Test::Util::build_test_mech71,1902 |
| 195 |
|
| 196 |
Tools.pm,648 |
| 197 |
package Poet::Tools;3,24 |
| 198 |
my $Fetch_Flags Fetch_Flags18,371 |
| 199 |
my $Store_Flags Store_Flags19,419 |
| 200 |
my $File_Spec_Using_Unix File_Spec_Using_Unix20,477 |
| 201 |
sub can_load Poet::Tools::can_load22,548 |
| 202 |
sub catdir Poet::Tools::catdir45,1029 |
| 203 |
sub catfile Poet::Tools::catfile51,1145 |
| 204 |
sub checksum Poet::Tools::checksum57,1263 |
| 205 |
sub find_wanted Poet::Tools::find_wanted71,1536 |
| 206 |
sub read_file Poet::Tools::read_file81,1695 |
| 207 |
sub tempdir_simple Poet::Tools::tempdir_simple106,2353 |
| 208 |
sub trim Poet::Tools::trim112,2463 |
| 209 |
sub uniq Poet::Tools::uniq121,2612 |
| 210 |
sub taint_is_on Poet::Tools::taint_is_on126,2681 |
| 211 |
sub write_file Poet::Tools::write_file130,2732 |
| 212 |
|
| 213 |
Types.pm,25 |
| 214 |
package Poet::Types;1,0 |
| 215 |
|
| 216 |
Util/Debug.pm,193 |
| 217 |
package Poet::Util::Debug;1,0 |
| 218 |
my $console_log;console_log12,262 |
| 219 |
sub _dump_value_with_caller Poet::Util::Debug::_dump_value_with_caller14,280 |
| 220 |
sub _define Poet::Util::Debug::_define25,603 |
| 221 |
|
| 222 |
Util/File.pm,30 |
| 223 |
package Poet::Util::File;1,0 |
| 224 |
|
| 225 |
Util/Web.pm,283 |
| 226 |
package Poet::Util::Web;1,0 |
| 227 |
my %html_escape html_escape12,270 |
| 228 |
my $html_escape html_escape14,357 |
| 229 |
my %js_escape js_escape17,430 |
| 230 |
sub html_escape Poet::Util::Web::html_escape34,865 |
| 231 |
sub js_escape Poet::Util::Web::js_escape40,975 |
| 232 |
sub make_uri Poet::Util::Web::make_uri47,1124 |
| 233 |
|
| 234 |
Manual.pod,0 |
| 235 |
|
| 236 |
Manual/Configuring.pod,0 |