From 903213e63fd6c409046f66e73881aba33c3926de Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 3 Aug 2008 16:40:12 -0400 Subject: add plugin safe/rebuild info (part 1 of 2) too many plugins.. brain exploding.. --- IkiWiki/Plugin/cutpaste.pm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'IkiWiki/Plugin/cutpaste.pm') diff --git a/IkiWiki/Plugin/cutpaste.pm b/IkiWiki/Plugin/cutpaste.pm index b1161ba06..24a05601d 100644 --- a/IkiWiki/Plugin/cutpaste.pm +++ b/IkiWiki/Plugin/cutpaste.pm @@ -9,11 +9,20 @@ use UNIVERSAL; my %savedtext; sub import { #{{{ + hook(type => "getsetup", id => "cutpaste", call => \&getsetup); hook(type => "preprocess", id => "cut", call => \&preprocess_cut, scan => 1); hook(type => "preprocess", id => "copy", call => \&preprocess_copy, scan => 1); hook(type => "preprocess", id => "paste", call => \&preprocess_paste); } # }}} +sub getsetup () { #{{{ + return + plugin => { + safe => 1, + rebuild => undef, + }, +} #}}} + sub preprocess_cut (@) { #{{{ my %params=@_; -- cgit v1.2.3