Skip to content

Commit 220aefe

Browse files
committed
Add extension_preferences option
This is something for the various plugins to read settings from.
1 parent cd6dcf6 commit 220aefe

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

lib/Plerd.pm

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,19 @@ has 'webmention_queue' => (
223223

224224
has 'extensions' => (
225225
is => 'ro',
226-
isa => 'Maybe[ArrayRef[Str]]',
226+
isa => 'Maybe[ArrayRef[Str]]'
227+
);
228+
229+
has 'extension_preferences' => (
230+
is => 'ro',
231+
isa => 'Maybe[HashRef]',
227232
);
228233

229234
has 'post_triggers' => (
230235
is => 'ro',
231236
isa => 'Maybe[HashRef[Str]]',
232237
lazy_build => 1,
233-
);
238+
);
234239

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

0 commit comments

Comments
 (0)