Skip to content

Commit 4d45b2b

Browse files
author
rbowen
committed
Kill the "IE on Mac" example. Replace with simpler example.
git-svn-id: http://svn.apache.org/repos/asf/httpd/httpd/trunk@1602702 13f79535-47bb-0310-9956-ffa450edef68
1 parent cf2f258 commit 4d45b2b

File tree

1 file changed

+19
-26
lines changed

1 file changed

+19
-26
lines changed

docs/manual/howto/ssi.xml

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -443,37 +443,30 @@ modified?</title>
443443
the ``truth'' of a particular value. (A given string is true if
444444
it is nonempty.) For a full list of the comparison operators
445445
available to you, see the <module>mod_include</module>
446-
documentation. Here are some examples of how one might use this
447-
construct.</p>
446+
documentation.</p>
447+
448+
<p>For example, if you wish to customize the text on your web page
449+
based on the time of day, you could use the following recipe, placed
450+
in the HTML page:</p>
448451

449-
<p>In your configuration file, you could put the following
450-
line:</p>
451-
<highlight language="config">
452-
BrowserMatchNoCase macintosh Mac<br />
453-
BrowserMatchNoCase MSIE InternetExplorer
454-
</highlight>
455-
456-
<p>This will set environment variables ``Mac'' and
457-
``InternetExplorer'' to true, if the client is running Internet
458-
Explorer on a Macintosh.</p>
459-
460-
<p>Then, in your SSI-enabled document, you might do the
461-
following:</p>
462-
<example>
463-
&lt;!--#if expr="-T reqenv('Mac') &amp;&amp;
464-
-T reqenv('InternetExplorer')" --&gt;<br />
465-
Apologetic text goes here<br />
466-
&lt;!--#else --&gt;<br />
467-
Cool JavaScript code goes here<br />
468-
&lt;!--#endif --&gt;
469-
</example>
452+
<example>
453+
Good
454+
&lt;!--#if expr="%{TIME_HOUR} &gt;=12" --&gt;<br />
455+
morning!<br />
456+
&lt;!--#else --&gt;<br />
457+
afternoon!<br />
458+
&lt;!--#endif --&gt;<br />
459+
</example>
470460

471461
<p>Any other variable (either ones that you define, or normal
472462
environment variables) can be used in conditional statements.
473-
With Apache's ability to set environment variables with the
463+
See <a href="../expr.html">Expressions in Apache HTTP Server</a> for
464+
more information on the expression evaluation engine.</p>
465+
466+
<p>With Apache's ability to set environment variables with the
474467
<code>SetEnvIf</code> directives, and other related directives,
475-
this functionality can let you do some pretty involved dynamic
476-
stuff without ever resorting to CGI.</p>
468+
this functionality can let you do a wide variety of dynamic content
469+
on the server side without resorting a full web application.</p>
477470
</section>
478471
</section>
479472

0 commit comments

Comments
 (0)