From cc87fd28d49d91a653751e8cb4b03cc830767533 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Fri, 1 Jan 2016 23:20:59 -0600 Subject: [PATCH] fix site creator to use plugins not event handler We should likely downplay the event handlers from now on. --- share/create/site.yml | 11 ++++++----- t/command/create.t | 9 +++------ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/share/create/site.yml b/share/create/site.yml index 2a710042..1882ca14 100644 --- a/share/create/site.yml +++ b/share/create/site.yml @@ -29,11 +29,6 @@ site: class: 'Statocles::Site' - on: - - build: - $class: 'Statocles::Plugin::LinkCheck' - $sub: 'check_pages' - args: # title: This is the title of the site, shown in the tag @@ -64,6 +59,12 @@ site: static: $ref: 'static_app' + # plugins: These are plugins that can add features and alter the + # content of the site. + plugins: + link_check: + $class: 'Statocles::Plugin::LinkCheck' + # theme: The theme builds and manages the templates. Use themes to # change how your site looks. theme: diff --git a/t/command/create.t b/t/command/create.t index 3382ad90..4eb4add6 100644 --- a/t/command/create.t +++ b/t/command/create.t @@ -415,15 +415,12 @@ sub site_config { }, index => '/blog', deploy => { '$ref' => 'deploy' }, - }, - on => [ - { - build => { + plugins => { + link_check => { '$class' => 'Statocles::Plugin::LinkCheck', - '$sub' => 'check_pages', }, }, - ], + }, }, blog_app => {