#!/usr/bin/slidescript # Generate an index.html example for the built-in HTTP daemon example # This will be used as a disposible web server! # First, lets populate some data for the web server itself, this script # will generate the index.html for the web server before launch. # Variables of the contents for index.html header=SlideScript ~ Web server head=

SlideScript - disposible web server index page

content=

There's not much to see here yet, more to come!

footer=
powered by ss:http
# Webserver port port=8080 # Filename in a variable filename=index.html # Writing the variable data to the file write "%filename%" "%header%%head%%content%%footer%" # Starting web server in the foreground, change 0 to 1 to fork to background print "Ctrl-C to kill me!" nethttp "%port%" "0"