httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1620015 - /httpd/httpd/branches/2.2.x/docs/manual/howto/ssi.html.en
Date Sat, 23 Aug 2014 11:37:08 GMT
Author: covener
Date: Sat Aug 23 11:37:07 2014
New Revision: 1620015

URL: http://svn.apache.org/r1620015
Log:
xforms


Modified:
    httpd/httpd/branches/2.2.x/docs/manual/howto/ssi.html.en

Modified: httpd/httpd/branches/2.2.x/docs/manual/howto/ssi.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/howto/ssi.html.en?rev=1620015&r1=1620014&r2=1620015&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/howto/ssi.html.en (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/howto/ssi.html.en Sat Aug 23 11:37:07 2014
@@ -425,30 +425,41 @@ modified?</a></h3>
     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 <code class="module"><a href="../mod/mod_include.html">mod_include</a></code>
-    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>
-
-    <div class="example"><p><code>
-    Good
-    &lt;!--#if expr="%{TIME_HOUR} &gt;=12" --&gt;<br />
-    morning!<br />
-    &lt;!--#else --&gt;<br />
-    afternoon!<br />
-    &lt;!--#endif --&gt;<br />
-    </code></p></div>
+    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>
+<div class="example"><p><code>
+        BrowserMatchNoCase macintosh Mac<br />
+        BrowserMatchNoCase MSIE InternetExplorer
+</code></p></div>
+
+    <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>
+<div class="example"><p><code>
+        &lt;!--#if expr="${Mac} &amp;&amp; ${InternetExplorer}" --&gt;<br
/>
+        Apologetic text goes here<br />
+        &lt;!--#else --&gt;<br />
+        Cool JavaScript code goes here<br />
+        &lt;!--#endif --&gt;
+</code></p></div>
+
+    <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>
 
     <p>Any other variable (either ones that you define, or normal
     environment variables) can be used in conditional statements.
-    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
+    With Apache's ability to set environment variables with the
     <code>SetEnvIf</code> directives, and other related directives,
-    this functionality can let you do a wide variety of dynamic content
-    on the server side without resorting a full web application.</p>
+    this functionality can let you do some pretty involved dynamic
+    stuff without ever resorting to CGI.</p>
 
 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"
/></a></div>
 <div class="section">



Mime
View raw message