Skip to content

Commit

Permalink
Add extension_preferences option
Browse files Browse the repository at this point in the history
This is something for the various plugins to read settings from.
  • Loading branch information
doddo committed Dec 16, 2018
1 parent cd6dcf6 commit 220aefe
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/Plerd.pm
Expand Up @@ -223,14 +223,19 @@ has 'webmention_queue' => (

has 'extensions' => (
is => 'ro',
isa => 'Maybe[ArrayRef[Str]]',
isa => 'Maybe[ArrayRef[Str]]'
);

has 'extension_preferences' => (
is => 'ro',
isa => 'Maybe[HashRef]',
);

has 'post_triggers' => (
is => 'ro',
isa => 'Maybe[HashRef[Str]]',
lazy_build => 1,
);
);

sub BUILD {
my $self = shift;
Expand Down Expand Up @@ -823,6 +828,11 @@ the blogs's private, not-necessarily-human-readable data files.
An arrayref of L<Str> objects, representing the plugins to load when a new Pled
instance is created.
=item extension_preferences
A hashref of config options for extensions. It is up to each individual extension
to decide how to act upon the contents therein.
=item post_triggers
A hashref of L<Str>,L<Str> objects. The key is used as a regex to deduce what
Expand Down

0 comments on commit 220aefe

Please sign in to comment.