X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/4ad7c9d6257ca106b2949d22f6300823190991a0..c9a652b311dabaf8b30ad455d7fcdf29c79a98b0:/ikiwiki.pl diff --git a/ikiwiki.pl b/ikiwiki.pl index aa0fd136a..b4cf0e64a 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}, @@ -76,7 +77,7 @@ sub getconfig () { #{{{ }, ) || usage(); - if (! $config{setup}) { + if (! $config{setup} && ! $config{render}) { loadplugins(); usage() unless @ARGV == 2; $config{srcdir} = possibly_foolish_untaint(shift @ARGV); @@ -114,6 +115,10 @@ sub main () { #{{{ require IkiWiki::Wrapper; gen_wrapper(); } + elsif ($config{render}) { + require IkiWiki::Render; + commandline_render(); + } else { lockwiki(); loadindex();