NAME
Perlanet::Trait::YAMLConfig - configure Perlanet through a YAML configuration file
SYNOPSIS
package MyPerlanet;extends 'Perlanet';with 'Perlanet::Traits::YAMLConfig';my $perlanet = MyPerlanet->new_with_config(configfile => 'whatever.yml');$perlanet->run;
DESCRIPTION
Allows you to move the configuration of Perlanet to an external YAML configuration file.
Example Configuration File
title: planet testdescription: A Test Planeturl: http://planet.example.com/author:name: Dave Crossemail: [email protected]entries: 20opml: opml.xmlpage:file: index.htmltemplate: index.ttfeed:file: atom.xmlformat: Atomcache_dir: /tmp/feedsfeeds:- url: http://blog.dave.org.uk/atom.xmltitle: Dave's Blogweb: http://blog.dave.org.uk/- url: http://use.perl.org/~davorg/journal/rsstitle: Dave's use.perl Journalweb: http://use.perl.org/~davorg/journal/- url: http://www.oreillynet.com/pub/feed/31?au=2607title: Dave on O'Reillynetweb: http://www.oreillynet.com/pub/au/2607
METHODS
get_config_from_file
Extracts the configuration from a YAML file
read_config
Actually reads the YAML.
AUTHOR
Oliver Charles, <[email protected]>
COPYRIGHT AND LICENSE
Copyright (c) 2010 by Magnum Solutions Ltd.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.