![]() |
![]()
| ![]() |
![]()
NAMEPerlanet::Trait::YAMLConfig - configure Perlanet through a YAML configuration file SYNOPSISpackage MyPerlanet; extends 'Perlanet'; with 'Perlanet::Traits::YAMLConfig'; my $perlanet = MyPerlanet->new_with_config( configfile => 'whatever.yml' ); $perlanet->run; DESCRIPTIONAllows you to move the configuration of Perlanet to an external YAML configuration file. Example Configuration Filetitle: planet test description: A Test Planet url: http://planet.example.com/ author: name: Dave Cross email: dave@dave.org.uk entries: 20 opml_file: opml.xml page: file: index.html template: index.tt feed: file: atom.xml format: Atom cache_dir: /tmp/feeds feeds: - feed: http://blog.dave.org.uk/atom.xml title: Dave's Blog web: http://blog.dave.org.uk/ - feed: http://use.perl.org/~davorg/journal/rss title: Dave's use.perl Journal web: http://use.perl.org/~davorg/journal/ - feed: http://www.oreillynet.com/pub/feed/31?au=2607 title: Dave on O'Reillynet web: http://www.oreillynet.com/pub/au/2607 METHODSget_config_from_fileExtracts the configuration from a YAML file read_configActually reads the YAML. AUTHOROliver Charles, <oliver.g.charles@googlemail.com> COPYRIGHT AND LICENSECopyright (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.
|