Re:You probably don't need a single-page app
by fiddlerwoaroof on Sunday February 17, 2019 @05:48PM
(#19187391)
I’ve occasionally thought of doing SSR but making it possible to server render only a small part of the page in response to an API request and then just use JavaScript to swap in the html from the backend.
[ Parent
| on HN ]
Re:You probably don't need a single-page app
by purerandomness on Sunday February 17, 2019 @08:13PM
(#19187998)
This is elegantly implemented by [1]. I love this concept and use it in all my projects.
Re:You probably don't need a single-page app
by fiddlerwoaroof on Sunday February 17, 2019 @05:49PM
(#19187395)
You could use `Accept: text/html` to indicate that an API should return html rather than Json.