aboutsummaryrefslogtreecommitdiff
path: root/t/linkify.t
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2008-01-27 16:13:54 -0800
committerJosh Triplett <josh@freedesktop.org>2008-01-27 16:14:38 -0800
commit1b03a06c8c0dbf59469ff30d09a0c9c3051e0b00 (patch)
tree06f20b766475a98f7881aa962f0c8a494c87908b /t/linkify.t
parentfafb2edaa7aeb1293e716fa96f087cb713f4a70a (diff)
downloadikiwiki-1b03a06c8c0dbf59469ff30d09a0c9c3051e0b00.tar
ikiwiki-1b03a06c8c0dbf59469ff30d09a0c9c3051e0b00.tar.gz
Add new preprocessor directive syntax¸ using a '!' prefix.
Add a prefix_directives option to the setup file to turn this syntax on; currently defaults to false, for backward compatibility. Support optional '!' prefix even with prefix_directives off, and use that in the underlay to support either setting of prefix_directives. Add NEWS entry with migration information.
Diffstat (limited to 't/linkify.t')
-rwxr-xr-xt/linkify.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/linkify.t b/t/linkify.t
index 59af7bd4d..400e2e893 100755
--- a/t/linkify.t
+++ b/t/linkify.t
@@ -24,9 +24,17 @@ sub linkify ($$$$) {
}
%config=IkiWiki::defaultconfig();
$config{cgiurl}="http://somehost/ikiwiki.cgi";
+ $config{srcdir}=$config{destdir}="/dev/null"; # placate checkconfig
# currently coded for non usedirs mode (TODO: check both)
$config{usedirs}=0;
+ # currently coded for prefix_directives=0 (TODO: check both)
+ # Not setting $config{prefix_directives}=0 explicitly; instead, let the
+ # tests break if the default changes, as a reminder to update the
+ # tests.
+
+ IkiWiki::checkconfig();
+
return IkiWiki::linkify($lpage, $page, $content);
}