You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2014/06/15 17:53:29 UTC
svn commit: r1602714 - /httpd/httpd/branches/2.2.x/docs/manual/howto/ssi.xml
Author: rbowen
Date: Sun Jun 15 15:53:29 2014
New Revision: 1602714
URL: http://svn.apache.org/r1602714
Log:
Remove ancient IE-on-Mac example.
Modified:
httpd/httpd/branches/2.2.x/docs/manual/howto/ssi.xml
Modified: httpd/httpd/branches/2.2.x/docs/manual/howto/ssi.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/howto/ssi.xml?rev=1602714&r1=1602713&r2=1602714&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/howto/ssi.xml (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/howto/ssi.xml Sun Jun 15 15:53:29 2014
@@ -431,41 +431,30 @@ modified?</title>
the ``truth'' of a particular value. (A given string is true if
it is nonempty.) For a full list of the comparison operators
available to you, see the <module>mod_include</module>
- documentation. Here are some examples of how one might use this
- construct.</p>
-
- <p>In your configuration file, you could put the following
- line:</p>
-<example>
- BrowserMatchNoCase macintosh Mac<br />
- BrowserMatchNoCase MSIE InternetExplorer
-</example>
-
- <p>This will set environment variables ``Mac'' and
- ``InternetExplorer'' to true, if the client is running Internet
- Explorer on a Macintosh.</p>
-
- <p>Then, in your SSI-enabled document, you might do the
- following:</p>
-<example>
- <!--#if expr="${Mac} && ${InternetExplorer}" --><br />
- Apologetic text goes here<br />
- <!--#else --><br />
- Cool JavaScript code goes here<br />
- <!--#endif -->
-</example>
-
- <p>Not that I have anything against IE on Macs - I just
- struggled for a few hours last week trying to get some
- JavaScript working on IE on a Mac, when it was working
- everywhere else. The above was the interim workaround.</p>
+ documentation.</p>
+
+ <p>For example, if you wish to customize the text on your web page
+ based on the time of day, you could use the following recipe, placed
+ in the HTML page:</p>
+
+ <example>
+ Good
+ <!--#if expr="%{TIME_HOUR} >=12" --><br />
+ morning!<br />
+ <!--#else --><br />
+ afternoon!<br />
+ <!--#endif --><br />
+ </example>
<p>Any other variable (either ones that you define, or normal
environment variables) can be used in conditional statements.
- With Apache's ability to set environment variables with the
+ See <a href="../expr.html">Expressions in Apache HTTP Server</a> for
+ more information on the expression evaluation engine.</p>
+
+ <p>With Apache's ability to set environment variables with the
<code>SetEnvIf</code> directives, and other related directives,
- this functionality can let you do some pretty involved dynamic
- stuff without ever resorting to CGI.</p>
+ this functionality can let you do a wide variety of dynamic content
+ on the server side without resorting a full web application.</p>
</section>
</section>