I was thinking about createing a freesite and got to thinking about how much easier my
job would be if we could use Server Side Includes (SSI) in the freesite. I'd like to
make a class that can parse an SSI and then do the specified job.
For those who aren't familer with how SSIs work, you embed them in an HTML document
(you usualy have to give it the extention ".shtml") and the web server (or in this
case, the class) would parse the web page and look for SSIs. They look something like
this:
<!--#include file="filename.txt" -->
In this case, the server (or class) would take out that part of the code and replace
it with the contents of "filename.txt". There are a few other types of SSIs.
I'll probably leave out the #exec SSI (which would execute a CGI script and include
the output in the webpage), since that wouldn't really work with Freenet. I'll
probably start with just the #include as thats the one that I use most (and I think a
lot of others need it, too).
One question: Do you think this should be included in FProxy or FreenetMirror (or the
like). The advantage of having it in FProxy would be that it will work for everybody,
even those who don't use a specfic type of Freenet site mirror client that supports
it. However, this means that FProxy would have to do another request for the file
every time. Putting it into the mirroring software (by automaticly expanding the
files into the page before inserting), it would make fewer requests, but it means that
you are stuck with mirroring software that supports it.
Whatever is decided, I'll just write the Java class for it and we can plug it into the
software wherever we want. Or maybe Mr. Bad and GJ have already put this
functionality into their respective mirroring programs and I don't know it, in which
case I will just shut up in disgrace.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS d- s+:-: a--- C+++ UL+++$ P+>P+++ L++>L++++ E--- W-- N+ !o K? w---
!O !M !V PS+ PE Y+(++) PGP@ t+(++) 5+(+++) X+@ !R tv b++ DI++++ D+
G e h! !r y?
------END GEEK CODE BLOCK------
-----------------------------------------------
Runbox Mail Manager - www.runbox.com
Free online email application
_______________________________________________
freenet-tech mailing list
[EMAIL PROTECTED]
http://lists.freenetproject.org/mailman/listinfo/tech