Hello. How to indent html that's being sent to browser? I use enlive for html transformations, and I get, e.g., <ul><li>...</li></ul> on a single line, and I'd like to pretty print this, so that these tags are on separate lines and properly indented. I guess hiccup can parse html and then pretty print it, but this seems like an overkill to me.
You could use a HTML parsing library like JSoup. Parse the HTML string, then output it with pretty printing turned on.