>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.

--
Benjamin Coates


_______________________________________________
Freenet-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to