This is perhaps one of the most useful tags in Spinner. Among other things, it allows you to write HTML-code that is only showed to people with a certain client. You can for example make a table, that if viewed on a non-table-compilant client uses preformatted text, or maybe even a completely different text instead.
tables: | Tables according to the HTML 3.0 specification |
forms: | Forms according to the HTML 2.0 and 3.0 specification |
imagealign: | The client supports align=left and align=right in images, à la Netscape. |
jpeginline: | The client can show jpeg images inline. |
font: | The client supports <font size=foo>, à la Netscape. |
backgrounds: | The client supports backgrounds according to the HTML3 specifications. |
java: | The client supports Java applets. |
vrml: | The client supports VRML. |
Modifiers:
Modifiers:
username:encrypted-password username:encrypted-password ....
Unless wwwfile is present, it is assumed that the file 'X'
is an ABSOLUTE pathname in the real filesystem, like
/usr/www/security/localpasswd.
<if host="130.236.25?.*"> <li> <a href="/local/">Local info</a>, only available to local clients </if>
A useful use of the 'user' option might be:
<if not user=any> <header name=WWW-Authenticate value="Basic; Realm=Pers"> <return code=401> <h1>Access denied</h1> You may not see this doument without a valid user and password. </if> <else> .. The secret document .. </else>This will force a user entry. But please note that if the user press the 'cancel' button, or refuse to enter an authentification, the parts of the document that is outside <else></else> will be shown to him or her.