X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FApp%2FSCS%2FPage.pm;fp=lib%2FApp%2FSCS%2FPage.pm;h=28edde43dcb039de8bd1e8fed21e1247116930d3;hb=c68d9e18d8bcc980605bc5466ed8782a5cb5dcf8;hp=7c4350cb965d29aee3568ba98756c111733ad107;hpb=fd5c2ec2b8daefffdb4dc95b01f1118dde99a7fb;p=scpubgit%2FApp-SCS.git diff --git a/lib/App/SCS/Page.pm b/lib/App/SCS/Page.pm index 7c4350c..28edde4 100644 --- a/lib/App/SCS/Page.pm +++ b/lib/App/SCS/Page.pm @@ -17,16 +17,10 @@ sub _my_path { io->dir($_[0]->_top_dir)->catdir($_[0]->path) } with 'App::SCS::Role::PageChildren'; has $_ => (is => 'ro') for qw( - title subtitle description keywords plugins html created path + title subtitle description keywords html created path ); -has plugin_config => (is => 'lazy'); - -sub _build_plugin_config { - my ($self) = @_; - - return $self->plugins; -} +has plugin_config => (is => 'rw', 'required' => 1); sub has_plugin_config { exists $_[0]->plugin_config->{$_[1]} } @@ -41,7 +35,7 @@ sub with_plugin_config { : ($name, $config) ); } - return $self->with(plugins => pond_write_datum(\@new)); + return $self->with(plugin_config => \@new); } has _raw_page_plugins => (is => 'lazy', builder => sub {