On Sun, 30 Aug 2009 15:33:10 +0100, RedGrittyBrick
<> wrote, quoted or indirectly quoted
someone who said :
>> Is there a way to do markup so that you get a default display if the
>> page is not yet JSP-expanded? Must you periodically expand all web
>> pages with JSP and capture them for offsite reading?
>
>I don't understand that.
I have been pondering this as I fall asleep.
I need to distribute my site in three forms:
1. dynamic. The user just wants to read the page now on the browser.
He is not interested in how the page was constructed. All comments and
markup can be stripped. He just sees the final result of JSP
processing. The page can be compacted, squeezing out all unneeded
whitespace.
2. offsite reading. This is like 1, but updates arrive via the
Replicator. It will not be as dynamic. It only updates when the user
does an update fetch with the Replicator.
3. the original. This is the text I compose with, including comments,
static (pre-upload) macros and JSP markup. It is not directly readable
in a browser. I can optionally expand the static macros locally to
view them, but I would need a local JSP engine to view the JSP
expansions.
I think the way to do this will be to distribute the three forms like
this:
1. via a JSP server than works on HTML with pre-expanded macros for
non-time sensitive macros.
2. Perhaps twice a day expand the entire website with JSP and capture
the output, then untouch it to redate it back if it has not really
changed, then prepare a the Replicator updates. This not as good as
what I do now. Currently, the Replicator is always 100% up to date.
see
http://mindprod.com/webstart.html#REPLICATOR
I can keep track of just which web pages need to be rebuilt. The
problem is JSP will change pages very frequently with trivial changes
that don't need to be tracked by the Replicator, e.g. quote of the
day. Perhaps my JSP can be clever and generate more stable HTML for
Replicator distribution.
3. distribute the raw markup in a Subversion repository, but so I can
more easily track changes, and so people can see how the web pages
were constructed, without the overhead of the scaffoldings being sent
out with every dynamic page.
--
Roedy Green Canadian Mind Products
http://mindprod.com
"Simplicity is prerequisite for reliability,"
~ Edsger Wybe Dijkstra (born: 1930-05-11 died: 2002-08-06 at age: 72)