Re: Why cant NB accept HTML files
Posted: Thu Sep 04, 2008 9:53 am
You're right, let's get back to your question. There's some interesting stuff behind it
I am using the Eclipse IDE and the NB does accept .html files, .htm files, and a combination/mix of the two. I just tested it; I renamed my index.htm to index.html, recompiled, and viola, now my starting page (not "default page") is index.html. All my other pages retained the .htm extension (so the existing refs in index.html still worked). Sort of good so far.
What remains an issue is the fact that the default page, as defined in the htmldata.cpp file:cannot be changed. So the default page (ex. that a browser will direct to if only the root IP address is entered) *MUST* be named index.htm. You can still browse to it by entering the explicit filename in the browser address bar - but I'm unsure if there are any other implications...
I am using the Eclipse IDE and the NB does accept .html files, .htm files, and a combination/mix of the two. I just tested it; I renamed my index.htm to index.html, recompiled, and viola, now my starting page (not "default page") is index.html. All my other pages retained the .htm extension (so the existing refs in index.html still worked). Sort of good so far.
What remains an issue is the fact that the default page, as defined in the htmldata.cpp file:
Code: Select all
/*Autogenerated data file */
#include "htmlfiles.h"
const char * default_page="INDEX.HTM";
<snip>