From: Ilya D. <err...@gm...> - 2011-10-26 23:24:30
|
On 26 October 2011 23:58, Mariano Alvira <ma...@de...> wrote: > One thing that that I've been thinking about, and it's somewhat > related, is that in a deployed system you want a border-router that > provides this info in compact and parsable format (for aggregators and > front-ends etc..) > > Maybe a format similar to the .well-known/core weblinking format? > > Or just a page for routes that returns a text file with each route on > a line. > > Anyway, your point about RAM consumption is very important. You could > always use a separate program to pretty-print the output. > > -Mar. I agree, why not use Markdown point to an external javascrip URL, e.g. Showdown [1] or an alternative [2]? [1]: http://softwaremaniacs.org/playground/showdown-highlight/ [2]: https://github.com/evilstreak/markdown-js/blob/master/lib/markdown.js Ok, we can think of some users who work at labs which do not provide them with access the rest of the internet ... and also, there would need to be some extra HTML which will point to the script, but that can be done with a clever DOM wrapper, perhaps jQuery could do it really! Well, the thing is that had been already thinking of some smart ways to create sophisticated UI on a page served by a node, though magic JS code wouldn't need to be served by the node itself. In fact something like this would be nice - <html> <head><script src="http://example.net/pretty-border-router-page.js"> </script><head><body><script> doPrettyBorderRouterPage({router: "myName", key: "val"} ); </script></body></html> So this would go in a C macro, which would define "myName" at compile time and then the macro would be used by a function that is used to server the requests! The URL can be a constant also, so that one could run their own server locally if for whatever reason. What do you guys think? I have some JS skills from working with Node.js and could probably put something like this together :) Cheers, -- Ilya |