Re:Htmx – high power tools for HTML
by pseudosavant on Thursday May 28, 2020 @12:16PM
(#23339039)
You could dynamically create HTML that mirrored a JSON response. You'd just have to have to walk the JSON structure and create a structure for where the key and the value from the JSON end up. Each node could just be a <div>. The ID could be a composition of the key and the parent nodes/keys so that it'd be unique. You could also stuff both values in a data-* attribute.
It wouldn't be the prettiest HTML but you could work with it via CSS and JS.
It wouldn't be the prettiest HTML but you could work with it via CSS and JS.