Difference between revisions of "SHTML"

From BC$ MobileTV Wiki
Jump to: navigation, search
(New page: '''S'''erver '''S'''ide '''I'''nclude '''HTML''' (also commonly abbreviated to ''SHTML'' or abbreviated ''SSI'') is HTML plus some additional server-side processing components/utilitie...)
 
Line 1: Line 1:
 
'''S'''erver '''S'''ide '''I'''nclude '''HTML''' (also commonly abbreviated to ''SHTML'' or abbreviated ''SSI'') is [[HTML]] plus some additional server-side processing components/utilities. The only difference between regular [[HTML]] and ''SHTML'' is the extra letter in the extension (''.shtml'') and the following types of code:  
 
'''S'''erver '''S'''ide '''I'''nclude '''HTML''' (also commonly abbreviated to ''SHTML'' or abbreviated ''SSI'') is [[HTML]] plus some additional server-side processing components/utilities. The only difference between regular [[HTML]] and ''SHTML'' is the extra letter in the extension (''.shtml'') and the following types of code:  
  
  <!--#directive parameter=value parameter=value -->
+
  &lt;!--#directive parameter=value parameter=value -->
 
   
 
   
 
<ref>What is SHTML?: http://www.kennesaw.edu/webmaster/whatis/shtml.html</ref>
 
<ref>What is SHTML?: http://www.kennesaw.edu/webmaster/whatis/shtml.html</ref>
Line 14: Line 14:
 
== Examples ==
 
== Examples ==
  
  <!--#include file="addedfile.txt" -->
+
  &lt;!--#include file="addedfile.txt" -->
  
  <!--#exec cgi="/cgi-bin/foo.cgi"-->
+
  &lt;!--#exec cgi="/cgi-bin/foo.cgi"-->
 +
 
 +
&lt;!--#config timefmt="%y %m %d" -->
 +
 
 +
&lt;!--#if expr="${Sec_Nav}" -->
 +
&lt;!--#include virtual="" -->
 +
&lt;!--#endif -->
  
<!--#config timefmt="%y %m %d" -->
 
  
 
   
 
   
 
<ref>Full reference available at: [[wikipedia: Server Side Includes]]</ref>
 
<ref>Full reference available at: [[wikipedia: Server Side Includes]]</ref>
 +
 +
 +
  
  

Revision as of 00:21, 4 November 2009

Server Side Include HTML (also commonly abbreviated to SHTML or abbreviated SSI) is HTML plus some additional server-side processing components/utilities. The only difference between regular HTML and SHTML is the extra letter in the extension (.shtml) and the following types of code:

<!--#directive parameter=value parameter=value -->

[1]


Where "directive" is not literally an operator or reserved keyword, but an indication of where directives should be placed in the SHTML syntax. They are placed in HTML comments so that they can be ignored by browsers/devices which don't understand SSI.



Examples

<!--#include file="addedfile.txt" -->
<!--#exec cgi="/cgi-bin/foo.cgi"-->
<!--#config timefmt="%y %m %d" -->
<!--#if expr="${Sec_Nav}" -->
<!--#include virtual="" -->
<!--#endif -->


[2]




External Links



References

  1. What is SHTML?: http://www.kennesaw.edu/webmaster/whatis/shtml.html
  2. Full reference available at: wikipedia: Server Side Includes