Get the latest tech news
A Racket alternative to HTML Tidy
5 Printer If you use Racket to generate web pages, you should use this package to make your HTML both readable and correct. Why go to the trouble of designing clean, semantic markup if you’re just going to slap it all on one line that scrolls horizontally forever? This package provides a single function — xexpr->html5 — for converting X-expressions to strings of HTML.
If you use Racket to generate web pages, you should use this package to make your HTML both readable and correct. Why go to the trouble of designing clean, semantic markup if you’re just going to slap it all on one line that scrolls horizontally forever? Converts xpr to a string of HTML, nicely wrapped and indented, ready for consumption.
Or read this on Hacker News