xFallenAngel wrote:* type B: A web interface is cool, but it should be using the newest browser, javascript, etc.
Who is B? I suspect that B is I, because I was the only one in this thread, who said about leveraging modern browsers. As far as I remember I advocated SSH for most tasks and I don't support the idea of "it should be using the newest browser, javascript, etc." --- tools should be adequate to needs.
Every time you code for a web site you are faced with selecting the lowest common denominator as your base ("We don't support NN4!") and providing enhancements for popular browsers ("This is extension for FF!"). I think that targeting text-based browsers makes the lowest common denominator is uncomman and impossibly low.
xFallenAngel wrote:so how do you test server-side things and get them to the javascript client?...
Sorry, I didn't get this paragraph. What did you mean by that?
In my (far from finished) implementation you still need server-side code. It goes (almost) directly to the browser and processed by JS. In most cases it's a one-liner. No processing is done in OpenWrt besides some greps. Is that what you asked?
xFallenAngel wrote:I am sure nbd's code can be taken apart a bit more or be templated a bit more, so that package maintainers just have to use a certain syntax (which may be documented some day) to provide UI for their package. No need to understand awk for that.
I don't recall bashing nbd's code. Just the opposite is true: I am impressed.
I want to clarify my point about awk. I downloaded nbd's code and started to muck around. ash scripts are unsuitable for HTML generation. Any transformation of command line output is a pain. If you can do with grep, and sub, you are fine. If not, you do awk. Basically the only scenario was easy to do: you show command line ouput verbatim, you show static form, you collect parameters from your form, and run a script with this parameters. Sounds familiar? I can do the same workflow with SSH. It would be simpler, more secure, and more flexible. I may need some helper scripts, which will automate some tasks for me. Things are getting more complicated, if you want to validate user's input. Just try to write something realistic. I tried.
xFallenAngel wrote:I totally agree. There should be a UI to start with. I think nbd's ui should be the standard installed web interface, but I guess thats a question of religion. The simple way to switch to another is to uninstall one and isntall the other. You dont need different images for that.
It's good to know your opinion. Not being OpenWrt developer I have absolutely no say in this matter. I could propose something. I did.
I hope "to uninstall one and isntall the other" would be possible without command line. Otherwise it defeats the purpose. That's why I proposed "the switch" in #1.
I think it is absolutely counterproductive to have many incompatible versions of web UI. Just imagine writing UI code for 5 different web UIs.
That's why I proposed #2.
In my proposals I don't discuss any specifics. I just want to have the door open for alternative implementations. Please keep in mind that at this point my version of web UI is vaporware --- nobody saw it but me.
nbd has working version. It is here _now_. So chill your engines.
When I have something semi-working (hopefully in ~2 weeks), I would be glad to hear some constructive criticism. But you have to wait.
PS: I re-read previous posts and I think that there is a misunderstanding. Let me tell directly what I thought was implied: I am doing web UI because I want to, I am not forcing it on anybody, I am not trying to convert anybody from their religions, I am not asking for anything, I don't think that I have monopoly on web UI, I am not going to bundle my implementation with anything (it is not my position to do so), I am not saying that you cannot do nice interface without JS. I hope it is clear now. Stop fantasizing. 
PPS: No, I am not against Shorewall.