logoalt Hacker News

ajasmin • today at 12:05 AM • 2 replies • view on HN

Aren't browsers implementations of the XSLT and XPATH standards really out of date to start with?

What would be a modern equivalent of a JSON to HTML transformer?


Replies

pornel • today at 12:09 AM

They are (were), and the implementation was poor anyway - the transform is not dynamic, and not even progressive. It's just a high-latency legacy static templating engine you can't upgrade.

daylily • today at 12:38 AM

JSON is much easier to directly access and manipulate in JS compared to XML, so I think you'd just fetch() it directly and then plug the data into something like lit-html. Which probably doesn't need bundling either since it's just template functions.

➕ show 1 reply