Index: [Article Count Order] [Thread]

Date: Sun, 07 Sep 2003 17:19:41 +0900 (JST)
From: GOTOU Yuuzou <gotoyuzo@notwork.org>
Subject: [webricken:122] Re: Getting .shtml to work
To: webricken@notwork.org
Message-Id: <20030907.171941.891705942.gotoyuzo@kotetsu.does.notwork.org>
In-Reply-To: <47EB7DAC-E0AD-11D7-8F3D-000393876156@cox.net>
References: <20030902.190148.629461786.gotoyuzo@kotetsu.does.notwork.org>	<47EB7DAC-E0AD-11D7-8F3D-000393876156@cox.net>
X-Mail-Count: 00122

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