From a35dd1d806f9bca82c0c04a4ff6c69956e3371a0 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Fri, 8 Feb 2008 18:35:12 -0800 Subject: [PATCH] Add --prefix-directives and --no-prefix-directives options to ikiwiki This avoids the need to set prefix_directives with --set. --- doc/usage.mdwn | 5 +++++ ikiwiki.in | 1 + 2 files changed, 6 insertions(+) diff --git a/doc/usage.mdwn b/doc/usage.mdwn index cd8f0542c..4c08c5b39 100644 --- a/doc/usage.mdwn +++ b/doc/usage.mdwn @@ -277,6 +277,11 @@ configuration options of their own. Toggle creating output files named page/index.html (default) instead of page.html. +* --prefix-directives, --no-prefix-directives + + Toggle new '!'-prefixed syntax for preprocessor directives. ikiwiki currently + defaults to --no-prefix-directives. + * --w3mmode, --no-w3mmode Enable [[w3mmode]], which allows w3m to use ikiwiki as a local CGI script, diff --git a/ikiwiki.in b/ikiwiki.in index 1ce7e1688..e0a591824 100755 --- a/ikiwiki.in +++ b/ikiwiki.in @@ -29,6 +29,7 @@ sub getconfig () { #{{{ "render=s" => \$config{render}, "wrappers!" => \$config{wrappers}, "usedirs!" => \$config{usedirs}, + "prefix-directives!" => \$config{prefix_directives}, "getctime" => \$config{getctime}, "numbacklinks=i" => \$config{numbacklinks}, "rcs=s" => \$config{rcs}, -- 2.26.2