Export add_autofile() for use in Plugins.
parent
f58f3e1bec
commit
25741100b0
|
@ -23,7 +23,7 @@ our @EXPORT = qw(hook debug error template htmlpage deptype
|
||||||
htmllink readfile writefile pagetype srcfile pagename
|
htmllink readfile writefile pagetype srcfile pagename
|
||||||
displaytime will_render gettext urlto targetpage
|
displaytime will_render gettext urlto targetpage
|
||||||
add_underlay pagetitle titlepage linkpage newpagefile
|
add_underlay pagetitle titlepage linkpage newpagefile
|
||||||
inject add_link
|
inject add_link add_autofile
|
||||||
%config %links %pagestate %wikistate %renderedfiles
|
%config %links %pagestate %wikistate %renderedfiles
|
||||||
%pagesources %destsources);
|
%pagesources %destsources);
|
||||||
our $VERSION = 3.00; # plugin interface version, next is ikiwiki version
|
our $VERSION = 3.00; # plugin interface version, next is ikiwiki version
|
||||||
|
|
|
@ -79,7 +79,7 @@ sub gentag ($) {
|
||||||
$template->param(tag => $tag);
|
$template->param(tag => $tag);
|
||||||
writefile($tagfile, $config{srcdir}, $template->output);
|
writefile($tagfile, $config{srcdir}, $template->output);
|
||||||
|
|
||||||
IkiWiki::add_autofile("$config{srcdir}/$tagfile");
|
add_autofile("$config{srcdir}/$tagfile");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue