I dont know if this helps:
http://linuxcommand.org/writing_shel....html#contents
It shows how to write a script to create a web page using a bash shell script.
here one i did to create a html file to view my firewall logs.
<-----code--------->
#!/bin/bash
# system_page - A script to produce an system information HTML file
##### Constants
TITLE="Firewall Information for $HOSTNAME"
RIGHT_NOW=$(date +"%x %r %Z")
TIME_STAMP="Updated on $RIGHT_NOW by $USER"
DATE_FORMAT=$(date +%f.%y.%T)
##### Functions
function uptime_info
{
echo "<h2>System uptime</h2>"
echo "<pre>"
uptime
echo "</pre>"
}
function firewall_log
{
echo "<h2>Firewall logs</h2>"
echo "<pre>"
cat /var/log/linksys.log
echo "</pre>"
}
##### Main
cat <<- _EOF_ > /html/index.$DATE_FORMAT.html
<html>
<head>
<title>$TITLE</title>
</head>
<body>
<h1>$TITLE</h1>
<p>$TIME_STAMP</p>
$(uptime_info)
$(firewall_log)
</body>
</html>
_EOF_
<-------end code------->
I did this from memory so some things may be different.