marc 97/02/11 20:37:37
Modified: htdocs/manual/mod mod_include.html Log: Add example with quoting that is not obvious at first. Revision Changes Path 1.6 +13 -0 apache/htdocs/manual/mod/mod_include.html Index: mod_include.html =================================================================== RCS file: /export/home/cvs/apache/htdocs/manual/mod/mod_include.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C3 -r1.5 -r1.6 *** mod_include.html 1996/12/09 04:09:19 1.5 --- mod_include.html 1997/02/12 04:37:35 1.6 *************** *** 261,266 **** --- 261,279 ---- <!--#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> + <!--#if expr="\"$DOCUMENT_URI\" = \"/foo/file.html\""--> + in foo + <!--#elif expr="\"$DOCUMENT_URI\" = \"/bar/file.html\""--> + in bar + <!--#else --> + in neither + <!--#endif --> + </PRE> + <hr> <h2>Directives</h2>