#!/usr/bin/ruby -Ke
require 'cgi'
class WikiBaseHtml
@@kcode='Shift-JIS'
@@stylesheet='http://www.n9d.sytes.net/stylesheets/mwstyle.css'
def initialize(name)
@base=<<LABEL
content-type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="ja-JP">
<head>
<meta http-equiv="content-type" content="text/html; charset=#{@@kcode}">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<link rel="stylesheet" type="text/css" href="#{@@stylesheet}">
<title><wiki:cmd_i cmd="selfpagename" /></title>
</head>
<body>
<!-- ### wiki header ### -->
<table class=control><tr>
<td></td>
<td><wiki:cmd_b cmd="includewith" arg="macrowiki-head" /></td>
</tr></table>
<!-- ### wiki body ### -->
<table class=body><tr>
<td class=margin></td>
<td class=body><wiki:cmd_b cmd="includewith" /></td>
</tr></table>
<!-- ### wiki footer ### -->
<table class=control><tr>
<td></td>
<td><wiki:cmd_b cmd="includewith" arg="macrowiki-foot" /></td>
</tr></table>