<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged server</title>
<link>https://ask.clojure.org/index.php/tag/server</link>
<description></description>
<item>
<title>How to setup a multipage web application with clojure and clojurescript</title>
<link>https://ask.clojure.org/index.php/14245/how-setup-multipage-application-with-clojure-clojurescript</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I wanted to find out whether it's possible to have a clojure web application that is serving html and use clojurescript to directly manipulate DOM elements.&lt;/p&gt;
&lt;p&gt;All the setups I've encountered usually involve a Single Page Application written in clojurescript on the frontend and clojure on the backend.&lt;/p&gt;
&lt;p&gt;I would like a traditional setup, a multipage web application.&lt;/p&gt;
&lt;p&gt;I checked out shadow-cljs and it seems to follow the single page setup where it serves the HTML itself. What if I am generating the HTML myself?&lt;/p&gt;
&lt;p&gt;Is it possible to achieve such a set-up? Also is it possible to do it with hot reloading?&lt;/p&gt;
&lt;p&gt;Thank you for answering my question.&lt;/p&gt;
</description>
<category>Clojure</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14245/how-setup-multipage-application-with-clojure-clojurescript</guid>
<pubDate>Thu, 14 Nov 2024 13:16:10 +0000</pubDate>
</item>
<item>
<title>how to start a web server in dev mode in an interactive mode with hot reload and refresh</title>
<link>https://ask.clojure.org/index.php/12933/start-server-mode-interactive-mode-with-reload-and-refresh</link>
<description>&lt;p&gt;Hello wonderful clojure community.&lt;br&gt;
I am new to clojure so appologies for my dump question.&lt;/p&gt;
&lt;p&gt;I want to write a http server in clojure and for that there a a few libraries/frameworks available. but what is important for me is the interactive development experience, how?&lt;/p&gt;
&lt;p&gt;ok, I want to start the server and if I change a module/namespace I want it to be automatically reload (actually I've already achieved this) however on top of it I want the frontend to get refreshed automatically to to refelect the changes. I use hiccup to describe/render my html pages, unfortunately though for any change I need to manually refresh the page.&lt;/p&gt;
&lt;p&gt;I know there should be a (websocket based) solution to make this possible.&lt;/p&gt;
&lt;p&gt;I want this soution to work with clojure, I do not use/want clojurescrip.&lt;/p&gt;
</description>
<category>Clojure</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/12933/start-server-mode-interactive-mode-with-reload-and-refresh</guid>
<pubDate>Fri, 12 May 2023 08:20:46 +0000</pubDate>
</item>
</channel>
</rss>