michalsn / codeigniter-htmx

HTMX helper library for CodeIgniter 4 framework
https://michalsn.github.io/codeigniter-htmx/
MIT License
75 stars 15 forks source link

fix: view fragments #78

Closed michalsn closed 2 weeks ago

michalsn commented 2 weeks ago

This PR fixes view fragments:

Closes #75

neznaika0 commented 2 weeks ago

Everything is fine for multi-fragments. I'll check on the project later. I have a problem with flash messages working.

After the request, you need to return the template and toasts from the flash for it. There was no data before PR, we need to review it again.

Will the clarification of the work be indicated in the documentation?

Fragments, like sections, are complemented, that is, by specifying several fragments of the same name, they will be displayed as one. But the input data for them may differ depending on the order of output.