]> granicus.if.org Git - apache/commitdiff
Add example with quoting that is not obvious at first.
authorMarc Slemko <marc@apache.org>
Wed, 12 Feb 1997 04:37:35 +0000 (04:37 +0000)
committerMarc Slemko <marc@apache.org>
Wed, 12 Feb 1997 04:37:35 +0000 (04:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@77603 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_include.html

index 58ff88079f252382e9ae532753212f7a18a161cf..93c7fb0b2f15764fedca879bfc95439df64b4560 100644 (file)
@@ -261,6 +261,19 @@ elements are:
     &lt;!--#if expr="$a = \$test" --&gt;
 </PRE>
 
+<P> 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:
+<PRE>
+    &lt;!--#if expr="\"$DOCUMENT_URI\" = \"/foo/file.html\""--&gt;
+    in foo
+    &lt;!--#elif expr="\"$DOCUMENT_URI\" = \"/bar/file.html\""--&gt;
+    in bar
+    &lt;!--#else --&gt;
+    in neither
+    &lt;!--#endif --&gt;
+</PRE>
+
 
 <hr>
 <h2>Directives</h2>