You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Marc Slemko <ma...@hyperreal.com> on 1997/02/12 05:37:37 UTC

cvs commit: apache/htdocs/manual/mod mod_include.html

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 ----
        &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>