]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/cutpaste.pm
updated from pesco's darcs repo, current to Oct 11 version
[git.ikiwiki.info.git] / IkiWiki / Plugin / cutpaste.pm
index b1161ba063c64ca8ecd8e08ec711d43682de64d5..92667a1ef458922f6cc8e18a9df6eef4e1002937 100644 (file)
@@ -4,16 +4,24 @@ package IkiWiki::Plugin::cutpaste;
 use warnings;
 use strict;
 use IkiWiki 2.00;
-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=@_;