NAME
Prancer::Core
SYNOPSIS
use Prancer::Core qw(config);
my $core = Prancer::Core->new('/path/to/config.yml');
my $foo = $core->config->get('foo');
my $bar = Prancer::Core->new->config->get('bar');
my $baz = config->get('baz');
DESCRIPTION
This class is a singleton that contains some core methods for Prancer to more easily function. This package can be initialized and used on its own if you want to use Prancer outside of a PSGI application.
METHODS
- initialized
 - 
Since this package is a singleton, it might happen that you have a place in your code where you try to use a method from this package before you are able to initialize it with the necessary arguments to
new. This will tell you if this package has been initialized.die "core has not been initialized" unless Prancer::Core->initialized(); print Prancer::Core->new->config->get('foo'); - config
 - 
Returns the configuration options parsed when this package was initialized. See Prancer::Config for more details on how to load and use the configuration data.