Commit 9cba14fe authored by Marc Slemko's avatar Marc Slemko
Browse files

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
parent ca2d8500
Loading
Loading
Loading
Loading
+13 −0
Changes for docs/manual/mod/mod_include.html: 13 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -261,6 +261,19 @@ elements are:
    <!--#if expr="$a = \$test" -->
</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>