aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki.pl
diff options
context:
space:
mode:
Diffstat (limited to 'ikiwiki.pl')
-rwxr-xr-xikiwiki.pl7
1 files changed, 6 insertions, 1 deletions
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();