From: Marc Slemko Date: Wed, 12 Feb 1997 04:37:35 +0000 (+0000) Subject: Add example with quoting that is not obvious at first. X-Git-Tag: APACHE_1_2b7~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5aabd54e96b44b428a817ef646c9b5822fcfbfcf;p=apache 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 --- 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