On 5 Sep 2002, Parul Mathur wrote:
So I would be really grateful if you could make your CGI script available for download on your website. Could you also make a non-CGI version available for use on the command line?
http://staff.ncst.ernet.in/~philip/downloads/slide-template.tar.gz
There's two steps to it.
You first create a text file (like all-in-one.txt that I have). You can call it anything you want. It doesn't even have to have the .txt extension.
Most html would go in there, and what goes in is what comes out. You ideally don't want any headers.
Once you've made your text file, do this:
cat slide-text-file | ./parse-slides.pl
This will create files called slide1.shtml, slide2.shtml...
you can change the head of the file by passing a parameter to parse-slides.pl:
cat slide-text-file | ./parse-slides.pl slide-
will create slide-1.shtml...
Note that the TOC will not work unless it is called slide1.shtml...
You should also edit header.shtml and index.shtml to suit your needs.
And make sure your webserver has the Includes feature turned on for this directory (IncludesNoExec will not work).
You can point your browser to the shtml files to view it.
Now, something cool. If you want to give the presentation, but you want others to be able to see the slides on their terminals, then tell everyone else to point their browsers to the file called current.shtml.
This file will always show the current slide that you're viewing - with a ~5 second delay.
This is really useful if you're doing the presentation over a video conference link, and video images of your slides don't look so good. Just tell the remote end to have current.shtml on their projector/PCs.
Requirements:
perl, sed, grep, sort, apache
yeah, i could drop the need for sed, grep and sort, but it would lose its coolness factor.