aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-01-05 17:15:38 -0400
committerJoey Hess <joey@kitenet.net>2011-01-05 17:15:38 -0400
commitd991ccf134acbc2eec83b8409a5911744f1956eb (patch)
tree9b278b4ecbe8e0ecd6f8d00a310a7255c419bec4 /IkiWiki.pm
parent4a6ac6b485c7e6e312e42c3c609df693f5e531ec (diff)
downloadikiwiki-d991ccf134acbc2eec83b8409a5911744f1956eb.tar
ikiwiki-d991ccf134acbc2eec83b8409a5911744f1956eb.tar.gz
use cgitemplate, remove misctemplate
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm33
1 files changed, 0 insertions, 33 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 35e64d815..799236f35 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -1916,39 +1916,6 @@ sub template ($;@) {
template_depends(shift, undef, @_);
}
-sub misctemplate ($$;@) {
- my $title=shift;
- my $content=shift;
- my %params=@_;
-
- my $template=template("page.tmpl");
-
- my $page="";
- if (exists $params{page}) {
- $page=delete $params{page};
- }
- run_hooks(pagetemplate => sub {
- shift->(
- page => $page,
- destpage => $page,
- template => $template,
- );
- });
- templateactions($template, "");
-
- $template->param(
- dynamic => 1,
- title => $title,
- wikiname => $config{wikiname},
- content => $content,
- baseurl => $config{url}.'/',
- html5 => $config{html5},
- %params,
- );
-
- return $template->output;
-}
-
sub templateactions ($$) {
my $template=shift;
my $page=shift;