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 24, 2018
1 parent fe877ff commit 5bc6ba2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/Plerd.pm
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,19 @@ has 'tags_map' => (

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 {
Expand Down Expand Up @@ -1004,6 +1009,11 @@ particularly helpful when creating navigation.
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 5bc6ba2

Please sign in to comment.