Perlanet::Trait::YAMLConfig(3pm)

Perlanet::Trait::YAMLConfig3pm

Configure perlanet through a yaml configuration file

Usage

   package MyPerlanet;
   extends 'Perlanet';
   with 'Perlanet::Traits::YAMLConfig';
   my $perlanet = MyPerlanet->new_with_config(
     configfile => 'whatever.yml'
   );
   $perlanet->run;

Overview

Allows you to move the configuration of Perlanet to an external YAML configuration file.

Example Configuration File

  title: planet test
  description: A Test Planet
  url: http://planet.example.com/
  author:
    name: Dave Cross
    email: [email protected]
  entries: 20
  opml: opml.xml
  page:
    file: index.html
    template: index.tt
  feed:
    file: atom.xml
    format: Atom
  cache_dir: /tmp/feeds
  feeds:
    - url: http://blog.dave.org.uk/atom.xml
      title: Dave's Blog
      web: http://blog.dave.org.uk/
    - url: http://use.perl.org/~davorg/journal/rss
      title: Dave's use.perl Journal
      web: http://use.perl.org/~davorg/journal/
    - url: http://www.oreillynet.com/pub/feed/31?au=2607
      title: Dave on O'Reillynet
      web: 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.

Releases

7 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7–8
  2. 9
  3. 10
  4. 11
  5. 12–13

Author

Oliver Charles, <[email protected]>

From libperlanet-perl 2.2.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.