12 June 1999. The SRE-http replacement strings file. I. Introduction I.a The replacement strings file I.a.1 Specifying host specific replacements I.a.2 Note on multi-line replacements I.a.3 Providing arguments to custom replacement strings I.a.4 Notes ---------------------------------------- I. Introduction SRE-https REPSTRGS.IN file is used to specify "replacement strings" for use with the server side include. Note that replacement strings can also be specified in the ATTRIBS.CFG file (see IN_FILES.DOC for the details). ---------------------------------------- I.a) Replacement strings file (REPSTRGS.IN) The replacement strings file contains "custom" replacement strings that can be used by the REPLACE keyphrase. Each line of this file (except lines beginning with a semi-colon, which are treated as comments) has two fields: @ A variable_name . The variable_name can be any length, but must have NO embedded spaces. @ A REPLACEMENT STRING . The REPLACEMENT STRING is the string to be used when a REPLACE keyphrase with an argument of variable_name is found. Example: CONTACT CONTACT ME SOON! # CONTACT is the variable_name # CONTACT ME SOON! is the REPLACEMENT STRING # When a That is, do NOT include the .host_nickname in the SSI keyphrase. Note that when finding a replacement string, "superceding hosts" and "strict-superceding hosts" are treated the same as "non-superceding hosts". In other words, a host-specific value is used if it has been defined; otherwise, a non-host specific value will be used. Technical note: If you were to use in a document in the default (the non-host specific) data directory, then "Contact me (the lake master) soon" would be inserted. I.a.2) Note on multi-line replacements The REPLACE keyphrase can be used for multi-line replacements (note that for replacements of more then a few lines it is probably wiser to use the INCLUDE keyphrase). To specify a multi line replacement, just enter multiple occurences of the same label -- the values will be appended. Example: # MYADDRESS
My address is: # MYADDRESS 1800 M St NW