ring

manas_marthi 2025-02-11T13:57:06.699949Z

Can I specify two folders or resource paths to Selmer template locations? I looked at the set-resource-path! source. It does not seem to have option to specify two folders . Not sure if there is any other way

weavejester 2025-02-11T15:23:00.453199Z

You may want to try asking on #clojure, as your question is about Selmer rather than Ring.

👍🏽 1
manas_marthi 2025-02-11T17:08:29.737649Z

On a Form created using Selmer, I used HTMX attributes hx-boost="true" hx-target="#myresp" to make the POST call happen via AJAX. When I update the source code, it seems ring-refresh is firing a GET call instead of repeating the POST call. This is giving me 405 method not allowed error .

manas_marthi 2025-02-11T17:14:39.277459Z

It works fine when I don't use HTMX. Not sure if it has anything to do AJAX calls

manas_marthi 2025-02-11T18:00:31.499149Z

The first request is a GET request to show the form, the second is a POST to submit the form and update a DIV with the response. As a work around I disabled the POST from getting added to browser history so that wrap-refresh will repeat the GET instead of the POST. My form tag is now having these HTMX attributes hx-boost="true" hx-push-url="false" hx-target="#myresp"

weavejester 2025-02-11T22:06:16.721209Z

ring-refresh just triggers a browser refresh when it detects files have changed. It doesn't do more than that.

👍🏽 1
manas_marthi 2025-02-12T00:15:43.298859Z

Got it. Is there a way to wire livereload.js ? In one of my previous Sring projects I had it and I think it was retrying HTMX's AJAX POST calls on reload