- Timestamp:
- 06/10/15 16:41:19 (9 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/BookmarksApp.pm
r98 r99 5 5 6 6 use parent qw{Plack::Component}; 7 use Plack::Util::Accessor qw{config _file config_app _controller};7 use Plack::Util::Accessor qw{config _app _controller}; 8 8 9 9 use YAML; … … 18 18 19 19 my $config = $self->config; 20 21 # if the config_file is set, try to load the config from there22 # note that currently, if there is a config_file and a config,23 # all of the values in config are ignored in favor of those in24 # the config_file25 if ($self->config_file) {26 -e $self->config_file or die "Config file " . $self->config_file . " not found\n";27 $config = YAML::LoadFile($self->config_file);28 #TODO: merge the configs instead of overwriting?29 $self->config($config);30 }31 20 32 21 my $router = router {
Note: See TracChangeset
for help on using the changeset viewer.