From 126a3da4ea6f99cda6cbd2c43e52fd3525ea21f8 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Sun, 15 Jun 2014 15:55:13 +0000 Subject: [PATCH] Rebuild HTML git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1602715 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/howto/ssi.html.en | 51 ++++++++++++++--------------------- docs/manual/howto/ssi.xml.ja | 2 +- docs/manual/howto/ssi.xml.ko | 2 +- 3 files changed, 22 insertions(+), 33 deletions(-) diff --git a/docs/manual/howto/ssi.html.en b/docs/manual/howto/ssi.html.en index 6124225d196..c651dfc6bf0 100644 --- a/docs/manual/howto/ssi.html.en +++ b/docs/manual/howto/ssi.html.en @@ -425,41 +425,30 @@ modified? 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 mod_include - documentation. Here are some examples of how one might use this - construct.

- -

In your configuration file, you could put the following - line:

-

- BrowserMatchNoCase macintosh Mac
- BrowserMatchNoCase MSIE InternetExplorer -

- -

This will set environment variables ``Mac'' and - ``InternetExplorer'' to true, if the client is running Internet - Explorer on a Macintosh.

- -

Then, in your SSI-enabled document, you might do the - following:

-

- <!--#if expr="${Mac} && ${InternetExplorer}" -->
- Apologetic text goes here
- <!--#else -->
- Cool JavaScript code goes here
- <!--#endif --> -

- -

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.

+ documentation.

+ +

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:

+ +

+ Good + <!--#if expr="%{TIME_HOUR} >=12" -->
+ morning!
+ <!--#else -->
+ afternoon!
+ <!--#endif -->
+

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 Expressions in Apache HTTP Server for + more information on the expression evaluation engine.

+ +

With Apache's ability to set environment variables with the SetEnvIf directives, and other related directives, - this functionality can let you do some pretty involved dynamic - stuff without ever resorting to CGI.

+ this functionality can let you do a wide variety of dynamic content + on the server side without resorting a full web application.

top
diff --git a/docs/manual/howto/ssi.xml.ja b/docs/manual/howto/ssi.xml.ja index 48edb515ac8..d32049561ce 100644 --- a/docs/manual/howto/ssi.xml.ja +++ b/docs/manual/howto/ssi.xml.ja @@ -1,7 +1,7 @@ - + +