From c35444826ca47123697a8f2512866f4f99964cc4 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 21 Sep 2006 21:34:29 +0000 Subject: * Add --render mode, which can be used to preview an edit at the command line by test rendering a single page. --- IkiWiki/Setup/Standard.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'IkiWiki/Setup') diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index b7583097d..7512c2587 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -34,7 +34,7 @@ sub setup_standard { $config{wiki_file_prune_regexp}=qr/$config{wiki_file_prune_regexp}|$setup{exclude}/; } - if (! $config{refresh} || $config{wrappers}) { + if (! $config{render} && (! $config{refresh} || $config{wrappers})) { debug("generating wrappers.."); my @wrappers=@{$setup{wrappers}}; delete $setup{wrappers}; @@ -66,7 +66,10 @@ sub setup_standard { } } - if (! $config{refresh}) { + if ($config{render}) { + commandline_render(); + } + elsif (! $config{refresh}) { $config{rebuild}=1; debug("rebuilding wiki.."); } -- cgit v1.2.3