Hi,
In message <47EB7DAC-E0AD-11D7-8F3D-000393876156@cox.net>,
`Mark Wilson <mwilson13@cox.net>' wrote:
> Thank you for the help on my previous question. I'm now trying to get
> .shtml files to work. The example below ('current-time.shtml' and
> 'print-time.rb') is taken from Chapter 20 of Mark Slagell's Teach
> Yourself Ruby book.
WEBrick doesn't support server side includes. Don't you try
to use ERb instead? The suffix is associated with ".rhtml".
current-time.rhtml:
<html><body>
Date: <b><%= Time.new %></b><br>
</body></html>
> I assume there is an expression to 'register' how Webrick handles
> .shtml files, but I don't know how to do it.
To use SSI, we should implement the its evaluator and write
a servlet class ;-)
--
gotoyuzo