Step 2 - libhtml.gsl

When you create HTML you can use echo statements or you can also use the library of HTML functions found in $UNIDIR/lib/libhtml.gsl. You can also pick and mix.

The library is documented in the GsharpWE Reference Manual and as it is written in GSL you can look at and modify the source.

In order to use the library you must include it like so at the top of your script:

include "$UNIDIR/lib/libhtml.gsl";

Convert helloworld.gsw to use the functions in libhtml.gsl and you should end up with something like this:

#!/bin/GsharpWE
include "$UNIDIR/lib/libhtml.gsl";


HTTPheader();


HTMLheader(1, "Hello World", "AVS");
HTMLheading(1, 1, "Hello World");
HTMLfooter(1);


Make sure that your script still works in the web browser.

It doesn't matter whether you use libhtml.gsl or not - but we'll use it for the rest of this tutorial.

Now go on to Step 3 - Adding Graphics