|
This discussion snippet asks and answers some more questions that I immediately had. In particular, it clarifies that only static HTML is delivered to the public host (which by default is Apache). That explains why there's no built-in search -- it's functionality that's not exportable as static HTML.
That said, let's not sneer at static HTML. In fact, Radio is using a technique that I continue to rely on heavily in managing websites. I call it dynamic generation of statically-served pages.
For example, I put the following into /radio/Macros/test.txt:
on test (s) { return ("<u>" + s + "</u>")}
and then I put this into /radio/www/test.txt
#title "test" <%test ("the sample text")%>
My local server responds to /test.txt like so:
the sample text
And the public server gave the same result in response to /test.html.
When I change the call to:
#title "test" <%test ("some different text")%>
It changed in both places.
However, when I changed the underlying macro to:
on test (s) { return ("<b>(" + s + ")</b>")}
The bolded, rather than underlined, rendering appeared only locally, not on the public server. To force the change to appear on the public side, I tried deleting/recreating /radio/Macros/test.txt. That didn't do it. I did succeed, finally, by deleting/recreating /radio/www/test.txt, the page that uses the macro.
Perhaps there's a synchronization strategy I don't yet understand. Or perhaps there are some kinks to be worked out. But in general, for the kinds of communication that Radio is meant to enable -- collaboration, knowledge management -- the marriage of a dynamic content renderer with a static page server can be highly practical and efficient.
Hmm. The synch issue are interesting. For example, I just changed my navigator.xml to include links to the Radio and RSS categories. They appear on the home page, and on the Radio category page, because these were both refreshed by my last post. However they don't appear on the RSS category page, and won't, I guess, until I route something there that forces a refresh. Is there a "Force Refresh of Everything" option?
Later...OK, found it. It's in the GUI-based tool, rather than the browser-based one. Radio->Publish->Entire Website did the trick.
11:15:14 PM
|