diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-04 04:29:37 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-04 04:29:37 +0000 |
commit | be56970d0565cc259bf28b1a3aa9582269c8d41f (patch) | |
tree | 086f7b2927fc14680016486eb3a9a8a71b35f08f /IkiWiki/Render.pm | |
parent | b3d24f6a63a8467c2df45ad74ee952aec5647e67 (diff) | |
download | ikiwiki-be56970d0565cc259bf28b1a3aa9582269c8d41f.tar ikiwiki-be56970d0565cc259bf28b1a3aa9582269c8d41f.tar.gz |
* Added smiley plugin, nicely controlled and documented by the smileys page.
* Copied in some smileys from Moin Moin.
Diffstat (limited to 'IkiWiki/Render.pm')
-rw-r--r-- | IkiWiki/Render.pm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index a4efa0b74..6f685f3b8 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -263,9 +263,18 @@ sub render ($) { #{{{ if ($type ne 'unknown') { my $content=readfile($srcfile); my $page=pagename($file); + delete $depends{$page}; + + if (exists $hooks{filter}) { + foreach my $id (keys %{$hooks{filter}}) { + $content=$hooks{filter}{$id}{call}->( + page => $page, + content => $content + ); + } + } $links{$page}=[findlinks($content, $page)]; - delete $depends{$page}; $content=linkify($content, $page); $content=preprocess($page, $content); |