On Wed, 27 Dec 2000, Benjamin Coates wrote:
> >From "Mark J. Roberts" <[EMAIL PROTECTED]>
>
> >It's not mandatory, it just won't automatically load if it's not named
> >index.html. But again, the default string to load doesn't matter. And
> >making it equal to nothing looks weird, like someone forgot to put in one
> >of the keys.
> >
> >index.html makes sense for anyone who's inserting a Web site
> >(99.9%). Using nothing is confusing for everyone.
> >
> >--
> >Mark Roberts
> >[EMAIL PROTECTED]
>
> OK, if "" is evil (seems like the most intuitive thing to me, and IIRC, it's
> what SSKs do), then how about a parameter somewhere that defaults to
> "index.html":
>
> Mapfile
> root="index.html" // optional
> End
> /* rest of mapfile */
>
> The part after Mapfile and up to End is just a Freenet.FieldSet, they are very
> easy to use:
>
> FieldSet fs = new FieldSet();
> fs.add("root","index.html");
> fs.writeFields(w); // w is your WriteOutputStream
>
> /* ... */
>
> FieldSet fs = new FieldSet();
> fs.parseFields(r); // r is your ReadInputStream
> String root = fs.get("root");
>
> Then all the website people get their index.html, but it doesn't stop anyone
> who isn't using HTML from being able to use intuitive key syntax.
I think this is of trivial importance and not worth implementing, but if
you want to do it, I have no problem with changing the format of the
mapfile by adding an "End" to separate options from the data.
I'll check all this crap in once I redo the caching and figure out why my
SSH CVS access is telling me that I can't access CVSROOT/history and
quitting when I try to log in. Maybe tonight, probably tomorrow.
--
Mark Roberts
[EMAIL PROTECTED]
_______________________________________________
Freenet-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/freenet-dev