NAME
Config::Settings
SYNOPSIS
# myapp.settings
hello {
world 1;
};
# myapp.pl
use Config::Settings;
my $settings = Config::Settings->new->parse_file ("myapp.settings");
print "Hello world!\n" if $settings->{hello}->{world};
DESCRIPTION
I will extend the documentation for the next release, this is just to get the module up on CPAN so people interested can start playing with it.
METHODS
new
my $parser = Config::Settings->new;
parse
my $settings = $parser->parse ($string);
parse_file
my $settings = $parser->parse_file ($filename);
EXAMPLES
A Catalyst application
name "MyApp";
Model::MyApp {
schema_class "MyApp::Schema";
connect_info {
dsn "dbi:SQLite:dbname=__HOME__/db/myapp.db";
AutoCommit 1;
};
};
View::TT {
ENCODING "UTF-8";
TEMPLATE_EXTENSION ".html";
INCLUDE_PATH "__HOME__/templates";
};
Plugin::Authentication {
default_realm "members";
realms {
members {
credential {
class "Password";
password_field "password";
password_type "hashed";
password_hash_type "SHA-256";
};
store {
class "DBIx::Class";
user_model "MyApp::User";
};
};
};
};
SEE ALSO
BUGS
Most software has bugs. This module probably isn't an exception. If you find a bug please either email me, or add the bug to cpan-RT.
AUTHOR
Anders Nor Berle <berle@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2008 by Anders Nor Berle.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.