The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mojolicious::Plugin::AdvancedMod::Configurator - Configuration change by MOJO_MODE

ARGUMENTS

file

Reads the yml/json stream from a file instead of a string

include

If your configuration has a file.(yml|json), Configurator replace the value of the contents of the file

eval

Eval code

SYNOPSIS

...
$self->configurator(
  file => 'etc/conf.yml'
  eval => {
    development => {
      code => '..',
      key  => 'db'
    },
    production  => { code => '..' },
    overall => {
      secret_key: 28937489273897
    }
  },
);
...
print self->stash( 'configurator' )->{db_name};

AUTHOR

COPYRIGHT AND LICENSE

Copyright (C) 2013, 2014 Grishkovelli grishkovelli@gmail.com

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.