Updated 2011-05-05 21:06:21 by RLE

This page deals with a small modification of web.tcl file from wikit.kit starkit.

I've modified the current wikit.kit (2007/02) to fit my need.

I wish to have my home page, css styled, looks like Sveinbjorn home page [1].

I've slightly modified Wikit's wikit.kit in order to add <div class="content"> tag. Here is the diff output from original wikit.vfs/lib/wikit/web.tcl :

Similarly I modified mypage.tcl and .tml on TclHttpd distribution : TclHttpd change + div tag css style
 80a81,88
 > proc Wikit::cgi_body_div {args} {
 >       cgi_body {
 >               cgi_division class="content" {
 >                       uplevel 1 [lindex $args end]
 >               }
 >       }
 > }
 >
 396c404
 <         cgi_body bgcolor=#ffffff {
 ---
 >         cgi_body_div {
 451c459
 <         cgi_body bgcolor=#ffffff {
 ---
 >         cgi_body_div {
 489c497
 <         cgi_body bgcolor=#ffffff {
 ---
 >         cgi_body_div {

Here is the standard dynamic cgi-bin use of wikit.kit. Here is the wiki.cgi script file :
 #!/bin/sh
 #
 # Script to invoke the tclkit wiki
 #
 WIKIT_BASE="http://<<ServerName>>/cgi-bin/wiki.cgi/"
 export WIKIT_BASE
 WIKIT_CSS="http://<<ServerName>>/styles/dynamic.css"
 export WIKIT_CSS
 WIKIT_EMAIL="<<ServerAdminEMail>>"
 export WIKIT_EMAIL

 if [ ! -f .../tclkit ]; then
  echo "wiki.cgi not configured"
  exit 0
 fi
 exec .../tclkit .../wikit.kit .../rouge39.tkd

LGT