CGI-Ex-Recipes
view release on metacpan or search on metacpan
erecipes/perl/lib/CGI/Ex/Recipes.pm view on Meta::CPAN
$self->conf->{template_args},
$self->conf->{auth_args}
};
}
sub hash_base {
my $self = shift;
my $hash = $self->SUPER::hash_base(@_);
$hash->{'app'} = $self;
#require Scalar::Util;
Scalar::Util::weaken($hash->{'app'});
return $hash;
}
sub post_navigate {
my $self = shift;
# show what happened
if (values %{$self->{'debug'}}) {
debug $self->dump_history if $self->conf->{debug}{dump_history};
debug $self->conf if $self->conf->{debug}{conf};
erecipes/perl/lib/CGI/Ex/Recipes.pm view on Meta::CPAN
Returns 0 or 1 depending on configuration for individual steps.
This way we make only some steps to require authentication.
=head2 auth_args
Get authentication arguments from configuration if there is such
and returns a hashref. The template_args are merged in also.
=head2 hash_base
The extra work done here is that we use L<Scalar::Util|Scalar::Util> to C<weaken>
the reference to the main application which we pass for use from within the templates and
template plugins. Without doing this we may have problems under persistent environments, such as
mod_perl. This is very handy when you need to dynamically generate HTML or
use the attached DBI object.
See L<CGI::Ex::Recipes::Template::Menu|CGI::Ex::Recipes::Template::Menu>, L<CGI::Ex::App|CGI::Ex::App>.
=head2 base_dir_abs
See also L<CGI::Ex::App|CGI::Ex::App>.
lib/CGI/Ex/Recipes.pm view on Meta::CPAN
$self->conf->{template_args},
$self->conf->{auth_args}
};
}
sub hash_base {
my $self = shift;
my $hash = $self->SUPER::hash_base(@_);
$hash->{'app'} = $self;
#require Scalar::Util;
Scalar::Util::weaken($hash->{'app'});
return $hash;
}
sub post_navigate {
my $self = shift;
# show what happened
if (values %{$self->{'debug'}}) {
debug $self->dump_history if $self->conf->{debug}{dump_history};
debug $self->conf if $self->conf->{debug}{conf};
lib/CGI/Ex/Recipes.pm view on Meta::CPAN
Returns 0 or 1 depending on configuration for individual steps.
This way we make only some steps to require authentication.
=head2 auth_args
Get authentication arguments from configuration if there is such
and returns a hashref. The template_args are merged in also.
=head2 hash_base
The extra work done here is that we use L<Scalar::Util|Scalar::Util> to C<weaken>
the reference to the main application which we pass for use from within the templates and
template plugins. Without doing this we may have problems under persistent environments, such as
mod_perl. This is very handy when you need to dynamically generate HTML or
use the attached DBI object.
See L<CGI::Ex::Recipes::Template::Menu|CGI::Ex::Recipes::Template::Menu>, L<CGI::Ex::App|CGI::Ex::App>.
=head2 base_dir_abs
See also L<CGI::Ex::App|CGI::Ex::App>.
( run in 0.387 second using v1.01-cache-2.11-cpan-65fba6d93b7 )