From: Amitai Schlair Date: Wed, 9 Sep 2009 18:44:52 +0000 (-0400) Subject: Merge branch 'master' of git://github.com/joeyh/ikiwiki X-Git-Tag: 3.14159265~74^2~3 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/5f44dd8e7762827753c02dcd78d663c0fd9554b3?ds=sidebyside;hp=-c Merge branch 'master' of git://github.com/joeyh/ikiwiki --- 5f44dd8e7762827753c02dcd78d663c0fd9554b3 diff --combined IkiWiki.pm index 453bc9f8c,2f11069c6..48780ae51 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@@ -33,6 -33,7 +33,7 @@@ use Memoize memoize("abs2rel"); memoize("pagespec_translate"); memoize("file_pruned"); + memoize("template_file"); sub getsetup () { wikiname => { @@@ -149,6 -150,13 +150,13 @@@ safe => 0, # path rebuild => 1, }, + templatedirs => { + type => "internal", + default => [], + description => "additional directories containing template files", + safe => 0, + rebuild => 0, + }, underlaydir => { type => "string", default => "$installdir/share/ikiwiki/basewiki", @@@ -336,7 -344,7 +344,7 @@@ qr/\.x?html?$/, qr/\.ikiwiki-new$/, qr/(^|\/).svn\//, qr/.arch-ids\//, qr/{arch}\//, qr/(^|\/)_MTN\//, qr/(^|\/)_darcs\//, - qr/\.dpkg-tmp$/], + qr/(^|\/)CVS\//, qr/\.dpkg-tmp$/], description => "regexps of source files to ignore", safe => 0, rebuild => 1, @@@ -1609,7 -1617,8 +1617,8 @@@ sub saveindex () sub template_file ($) { my $template=shift; - foreach my $dir ($config{templatedir}, "$installdir/share/ikiwiki/templates") { + foreach my $dir ($config{templatedir}, @{$config{templatedirs}}, + "$installdir/share/ikiwiki/templates") { return "$dir/$template" if -e "$dir/$template"; } return;