X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/24fcf2b97d86debeb27ab4ab46a6bc0a2f23f2b2..62a22bf5417a89a618f9a3197f05efe7a8e002ca:/ikiwiki.pl diff --git a/ikiwiki.pl b/ikiwiki.pl index c9b53a031..b9a0db7e4 100755 --- a/ikiwiki.pl +++ b/ikiwiki.pl @@ -26,6 +26,7 @@ sub getconfig () { #{{{ "syslog!" => \$config{syslog}, "rebuild!" => \$config{rebuild}, "refresh!" => \$config{refresh}, + "render=s" => \$config{render}, "wrappers!" => \$config{wrappers}, "getctime" => \$config{getctime}, "wrappermode=i" => \$config{wrappermode}, @@ -45,6 +46,8 @@ sub getconfig () { #{{{ "svnpath" => \$config{svnpath}, "adminemail=s" => \$config{adminemail}, "timeformat=s" => \$config{timeformat}, + "sslcookie!" => \$config{sslcookie}, + "httpauth!" => \$config{httpauth}, "exclude=s@" => sub { $config{wiki_file_prune_regexp}=qr/$config{wiki_file_prune_regexp}|$_[1]/; }, @@ -75,7 +78,7 @@ sub getconfig () { #{{{ }, ) || usage(); - if (! $config{setup}) { + if (! $config{setup} && ! $config{render}) { loadplugins(); usage() unless @ARGV == 2; $config{srcdir} = possibly_foolish_untaint(shift @ARGV); @@ -113,6 +116,10 @@ sub main () { #{{{ require IkiWiki::Wrapper; gen_wrapper(); } + elsif ($config{render}) { + require IkiWiki::Render; + commandline_render(); + } else { lockwiki(); loadindex();