pugjs / pug

Pug – robust, elegant, feature rich template engine for Node.js
https://pugjs.org
21.63k stars 1.96k forks source link

Use HTML prettifier #1123

Open ForbesLindesay opened 11 years ago

ForbesLindesay commented 11 years ago

If we use a separate HTML prettifier we can move out all the issues surrounding formatting of pretty printing HTML into a library that actually cares. Jade should focus on compiling jade to html, not pretty printing that html.

eddiemonge commented 11 years ago

oi. #1124 sigh sad face

ForbesLindesay commented 11 years ago

hmm, yes, I don't mind accepting that in the mean time (if you make the tests pass). I've been thinking this for a while. I didn't realise I hadn't created an issue for it.

rlidwka commented 10 years ago

@ForbesLindesay , no progress on this yet?

I'm almost ready to write one myself, since whitespace issues just bit me yesterday :P

ForbesLindesay commented 10 years ago

no progress yet. https://github.com/einars/js-beautify/blob/master/js/lib/beautify-html.js seems like it should make for a good starting point.

jerrylau91 commented 8 years ago

HTTPie is awesome

ForbesLindesay commented 8 years ago

@Jerry-Lau not sure what you're referring to, do you have a link?