Skip to content

Commit 5bc6ba2

Browse files
committed
Add extension_preferences option
This is something for the various plugins to read settings from.
1 parent fe877ff commit 5bc6ba2

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
@@ -261,14 +261,19 @@ has 'tags_map' => (
261261

262262
has 'extensions' => (
263263
is => 'ro',
264-
isa => 'Maybe[ArrayRef[Str]]',
264+
isa => 'Maybe[ArrayRef[Str]]'
265+
);
266+
267+
has 'extension_preferences' => (
268+
is => 'ro',
269+
isa => 'Maybe[HashRef]',
265270
);
266271

267272
has 'post_triggers' => (
268273
is => 'ro',
269274
isa => 'Maybe[HashRef[Str]]',
270275
lazy_build => 1,
271-
);
276+
);
272277

273278

274279
sub BUILD {
@@ -1004,6 +1009,11 @@ particularly helpful when creating navigation.
10041009
An arrayref of L<Str> objects, representing the plugins to load when a new Pled
10051010
instance is created.
10061011
1012+
=item extension_preferences
1013+
1014+
A hashref of config options for extensions. It is up to each individual extension
1015+
to decide how to act upon the contents therein.
1016+
10071017
=item post_triggers
10081018
10091019
A hashref of L<Str>,L<Str> objects. The key is used as a regex to deduce what

0 commit comments

Comments
 (0)