Is there a way to beautify the exported HTML code?

6 views
Skip to first unread message

Pan Seng Tat

unread,
Jan 10, 2018, 3:25:27 AM1/10/18
to Serve Users
I noticed that on Mac OS X 10.11.6 and having installed both Ruby and Serve, performing a "serve export..." compiles the HAML code into HTML code but does not beautify it.
Instead, all the final HTML code are aligned to the left without indentation.

Is there any setting to modify to make Serve export HTML files with indentation and beautified?

John Long

unread,
Jan 11, 2018, 9:10:17 PM1/11/18
to serve...@googlegroups.com
There may be a way to do it. It would involve passing the correct settings to Tilt. I haven’t had a change to research it, but I believe that HAML offers an option to beautify the HTML or compress it.

—John

--
--
Serve Users Group
Mailing List: http://groups.google.com/group/serve-users/
Project: http://github.com/jlong/serve/

---
You received this message because you are subscribed to the Google Groups "Serve Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serve-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages