aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-05-05 05:10:00 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-05-05 05:10:00 +0000
commit157df8591f03ade7504ad732446f125ae8609b05 (patch)
tree83e86e9ecfce04df964fd698dab9df3a2255393a /IkiWiki
parent13f8a835a0b59de43316674e2122f0bbf3d9ef3a (diff)
downloadikiwiki-157df8591f03ade7504ad732446f125ae8609b05.tar
ikiwiki-157df8591f03ade7504ad732446f125ae8609b05.tar.gz
rename the "render" hook to "change", which is clearer
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/search.pm6
-rw-r--r--IkiWiki/Plugin/skeleton.pm8
-rw-r--r--IkiWiki/Render.pm6
3 files changed, 10 insertions, 10 deletions
diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm
index c71fef76e..213ed45ff 100644
--- a/IkiWiki/Plugin/search.pm
+++ b/IkiWiki/Plugin/search.pm
@@ -11,8 +11,8 @@ sub import { #{{{
call => \&checkconfig);
IkiWiki::hook(type => "delete", id => "hyperestraier",
call => \&delete);
- IkiWiki::hook(type => "render", id => "hyperestraier",
- call => \&render);
+ IkiWiki::hook(type => "change", id => "hyperestraier",
+ call => \&change);
IkiWiki::hook(type => "cgi", id => "hyperestraier",
call => \&cgi);
} # }}}
@@ -41,7 +41,7 @@ sub delete (@) { #{{{
IkiWiki::estcfg();
} #}}}
-sub render (@) { #{{{
+sub change (@) { #{{{
IkiWiki::debug("updating hyperestraier search index");
IkiWiki::estcmd("gather -cm -bc -cl -sd",
map {
diff --git a/IkiWiki/Plugin/skeleton.pm b/IkiWiki/Plugin/skeleton.pm
index cae4c02ec..d5a2125e5 100644
--- a/IkiWiki/Plugin/skeleton.pm
+++ b/IkiWiki/Plugin/skeleton.pm
@@ -17,8 +17,8 @@ sub import { #{{{
call => \&filter);
IkiWiki::hook(type => "delete", id => "skeleton",
call => \&delete);
- IkiWiki::hook(type => "render", id => "skeleton",
- call => \&render);
+ IkiWiki::hook(type => "change", id => "skeleton",
+ call => \&change);
IkiWiki::hook(type => "cgi", id => "skeleton",
call => \&cgi);
} # }}}
@@ -47,10 +47,10 @@ sub delete (@) { #{{{
IkiWiki::debug("skeleton plugin told that files were deleted: @files");
} #}}}
-sub render (@) { #{{{
+sub change (@) { #{{{
my @files=@_;
- IkiWiki::debug("skeleton plugin told that files were rendered: @files");
+ IkiWiki::debug("skeleton plugin told that changed files were rendered: @files");
} #}}}
sub cgi ($) { #{{{
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 6f685f3b8..262e0ec29 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -477,9 +477,9 @@ FILE: foreach my $file (@files) {
$hooks{delete}{$id}{call}->(@del);
}
}
- if (%rendered && exists $hooks{render}) {
- foreach my $id (keys %{$hooks{render}}) {
- $hooks{render}{$id}{call}->(keys %rendered);
+ if (%rendered && exists $hooks{change}) {
+ foreach my $id (keys %{$hooks{change}}) {
+ $hooks{change}{$id}{call}->(keys %rendered);
}
}
} #}}}