Hi all:
I know at least one company has developed a React based front end for
Roundup using REST. React based SPA's redraw parts of the page in
response to user interaction speeding up the front end.
I was wondering if there was a way to do rendering of parts of the
page on user interaction without using javascript in the browser to
generate HTML using data obtained via REST.
This method would use server side rendering (SSR) of the HTML. It
would keep all the state on the Roundup server. It would transfer only
the new parts and reduce the transmission size when the user clicked
on something.
Tools like htmx and htmz seem to be useful for this. They get a
fragment of HTML content from the server and use it to replace an
existing element on the web page.
I sketched out a way to get Roundup to produce page fragments (think
of it as returning just the content part of issue.index.html or
issue.item.html). I did this in about 10 lines of changes to
page.html.
You can see my thoughts at:
https://wiki.roundup-tracker.org/ServingHtmlFragmentsForHtmxHtmz
Have a great week all.
--
-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.
|