On Wed, 8 Nov 2000, Chris Pepper wrote:
Have you considered allowing SSIs to insert literal strings in the generated output? This would enable the whole ball of header to go into a single SSI, something like:
<!--#include virtual="header.html" title="Why Apache Is Great"-->
Then a token in the SSI would get replaced by the title attribute. I think this would be useful for many cases, but it would be a big win purely for <title>.
something.html: <!--#set var="title" value="It works !" --> <!--#include virtual="header.html" -->
header.html: <TITLE><!--#echo var="title" --></TITLE>
Or you could even have header.html do an if, so that if title isn't defined it puts a more useful default in than "(none)"...
Is there any advantage to a slight syntax change? I'm doubtful...
Marc,
Thanks. I didn't think of doing it that way. The advantage of simplicity of use isn't worth complicating SSI, since it's unncessary.
Chris Pepper
-- Chris Pepper | Shooting Gallery Interactive | 212 905-2200 Mac OS X Software: <http://www.mosxsw.com/>