From 5aabd54e96b44b428a817ef646c9b5822fcfbfcf Mon Sep 17 00:00:00 2001 From: Marc Slemko Date: Wed, 12 Feb 1997 04:37:35 +0000 Subject: [PATCH] Add example with quoting that is not obvious at first. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@77603 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_include.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/manual/mod/mod_include.html b/docs/manual/mod/mod_include.html index 58ff88079f..93c7fb0b2f 100644 --- a/docs/manual/mod/mod_include.html +++ b/docs/manual/mod/mod_include.html @@ -261,6 +261,19 @@ elements are: <!--#if expr="$a = \$test" --> +

EXAMPLE: the below example will print "in foo" if the DOCUMENT_URI is +/foo/file.html, "in bar" if it is /bar/file.html and "in neither" +otherwise: +

+    <!--#if expr="\"$DOCUMENT_URI\" = \"/foo/file.html\""-->
+    in foo
+    <!--#elif expr="\"$DOCUMENT_URI\" = \"/bar/file.html\""-->
+    in bar
+    <!--#else -->
+    in neither
+    <!--#endif -->
+
+

Directives

-- 2.40.0