Relative Content

Tag Archive for gohtmx

Problem with golang plus htmx plus javascript

I have a problem, because when I click first eg today button, then from api i get slice with titles with date:today, but when i click next or prev month and then i go back to current month, when i click today nothing happens. I think problem is in renderCalendar so maybe js problem or htmx problem

How do I dynamically update the template based on user logged in status?

I have an issue where if the user is logged in or logged out the sidebar html that is nested should be different. Now i believe the normal way to solve this is to pass down a .LoggedIn value (this means i would have to pass this on every request where the side bar is present, every page).

Go Endpoint doesn’t call handler Method

I’m implementing a small hobby project with Go, HTMX, Templ as TechStack. Because I’m new to it, I started a small playground and try to build some small search.