s into a hash and multi-hash
=head2 L<Mojolicious::Plugin::AdvancedMod::Configurator>
Load YAML/JSON config, encapsulation, change 'templates_path' && 'static_path' by MOJO_MODE/config.
=head2 L<M
e} ) {
foreach my $param ( keys %{$conf} ) {
next if $conf->{$param} !~ /\.(yml|json)$/;
$conf->{$param} = _load_file( $conf->{$param}, $mode );
}
}
if
faults( switch_config => $conf );
$self->app->log->debug( "** Configurator config: " . Mojo::JSON->new->encode( $conf ) );
if ( $conf->{_err} ) {
$self->app->log->error( "** Configurat
my $ext = shift;
my %lst = (
yml => [qw( YAML::XS YAML YAML::Tiny )],
json => [qw( JSON::XS JSON Mojo::JSON )]
);
foreach my $pkg ( @{ $lst{$ext} } ) {
eval "use $pkg";
if ( !
s into a hash and multi-hash
=head2 L<Mojolicious::Plugin::AdvancedMod::Configurator>
Load YAML/JSON config, encapsulation, change 'templates_path' && 'static_path' by MOJO_MODE/config.
=head2 L<M