diff options
author | Joey Hess <joey@kitenet.net> | 2012-03-28 18:41:47 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-03-28 18:43:07 -0400 |
commit | d68d25526816d40048ca47ad360304bce162b659 (patch) | |
tree | 30230ad338c5e9a4d2574cab844399b2ddf3d075 /IkiWiki/Plugin/transient.pm | |
parent | 1916f974722ff509e44c16b4c07c054ef9a11f96 (diff) | |
download | ikiwiki-d68d25526816d40048ca47ad360304bce162b659.tar ikiwiki-d68d25526816d40048ca47ad360304bce162b659.tar.gz |
Added a "changes" hook. Renamed the "change" hook to "rendered", but
the old hook name is called for now for back-compat.
Diffstat (limited to 'IkiWiki/Plugin/transient.pm')
-rw-r--r-- | IkiWiki/Plugin/transient.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/transient.pm b/IkiWiki/Plugin/transient.pm index c0ad5fc11..4ea4317d4 100644 --- a/IkiWiki/Plugin/transient.pm +++ b/IkiWiki/Plugin/transient.pm @@ -8,7 +8,7 @@ use IkiWiki 3.00; sub import { hook(type => "getsetup", id => "transient", call => \&getsetup); hook(type => "checkconfig", id => "transient", call => \&checkconfig); - hook(type => "change", id => "transient", call => \&change); + hook(type => "rendered", id => "transient", call => \&rendered); } sub getsetup () { @@ -33,7 +33,7 @@ sub checkconfig () { } } -sub change (@) { +sub rendered (@) { foreach my $file (@_) { # If the corresponding file exists in the transient underlay # and isn't actually being used, we can get rid of it. |