3 ms·
This is probably a silly question, but how do I use loops? For example, if my backend returns an array of TODO items, how can i iterate through that and display
by memset 1y ago
This is probably a silly question, but how do I use loops? For example, if my backend returns an array of TODO items, how can i iterate through that and display on the frontend?
- fnord123 1y agoHtmx and datastar use backend rendering. So you write the html in the backend and serve that. In the case of an array, you render them as Todo ítems. You might be using a template system for that. E.g. Jinja2, moustache, askama, templ, etc depending on your backend language and libraries.