[#config trace=1]
[0008:1]  #include virtual="xssi.shtml" type="text/plain"
[0009:1]  #stop
[0010:1]#elif value={QUERY_STRING} srch="*printenv=yes*"
[0011:1]  #printenv
[0012:1]  #stop
[0013:1]#endif
[0014:1]#echo "\<!-- the query string is {QUERY_STRING,length} byte(s) long \-->"
[#endif]
[0015:0]#set var=HOUR value={DATE_LOCAL,12,2}
[#echo "\<!-- the query string is {QUERY_STRING,length} byte(s) long \-->"]<!-- the query string is 18 byte(s) long -->
[0016:0]#if var={HOUR} lt=12
[#set var=HOUR value={DATE_LOCAL,12,2}][HOUR=17]
[0017:0]  #set var=GREETING value="Good morning"
[#if var={HOUR} lt=12]
[0018:1]#elif var={HOUR} lt=19
[0019:1]  #set var=GREETING value="Good afternoon"
[#elif var={HOUR} lt=19]
[0020:1]#else
[#set var=GREETING value="Good afternoon"][GREETING=Good afternoon]
[0021:1]  #set var=GREETING value="Good evening"
[0022:1]#endif
[0023:1]-->
[#endif]
[0024:0]
[0025:0]<!-- this comment will appear in the resulting document  -->
[0026:0]<!--## this comment will NOT appear in the resulting document  -->

<!-- this comment will appear in the resulting document  -->
[## this comment will NOT appear in the resulting document]
[0027:0]<TITLE><!--#echo value={GREETING} --> <!--#echo value="{REMOTE_HOST} !" --></TITLE>
<TITLE>[#echo value={GREETING}]Good afternoon [#echo value="{REMOTE_HOST} !"]ec2-3-138-34-52.us-east-2.compute.amazonaws.com !
[0028:0]<H1>Simple XSSI Demonstration</H1>
[0029:0]<!--#echo value={GREETING} --> <!--#echo value={REMOTE_HOST} -->,
</TITLE>
<H1>Simple XSSI Demonstration</H1>
[#echo value={GREETING}]Good afternoon [#echo value={REMOTE_HOST}]ec2-3-138-34-52.us-east-2.compute.amazonaws.com
[0030:0]the time here is <!--#echo value={DATE_LOCAL,12,5} -->
,
the time here is [#echo value={DATE_LOCAL,12,5}]17:49
[0031:0]<!--#if var={REMOTE_HOST} eqs={REMOTE_ADDR} -->

[#if var={REMOTE_HOST} eqs={REMOTE_ADDR}]
[0032:1]<P>(Sorry, I do not know your name, DNS lookup must be disabled!)
[0033:1]<!--#endif -->
[#endif]
[0034:0]
[0035:0]<P>
[0036:0]<UL>
[0037:0]<LI><A HREF="xssi.shtml?httpd=ssi&text=plain">
[0038:0]The source of this document</A>
[0039:0]<LI><A HREF="xssi.shtml?httpd=ssi&trace=on">
[0040:0]This document with SSI #trace switched on</A>
[0041:0]<LI><A HREF="xssi.shtml?httpd=ssi&printenv=yes">
[0042:0]SSI and CGI variables available</A>
[0043:0]</UL>

<P>
<UL>
<LI><A HREF="xssi.shtml?httpd=ssi&text=plain">
The source of this document</A>
<LI><A HREF="xssi.shtml?httpd=ssi&trace=on">
This document with SSI #trace switched on</A>
<LI><A HREF="xssi.shtml?httpd=ssi&printenv=yes">
SSI and CGI variables available</A>
</UL>