How do i print nice formatted html?
I want something like app.locals.pretty = true.
ExpressJS: how to output pretty html
How do i print nice formatted html?
I want something like app.locals.pretty = true.
ExpressJS: how to output pretty html
Copyright © 2021 Jogjafile Inc.
According to
Text.Hamlet.Html's definition, Hamlet usesblaze-markupfor its output.blaze-markup, in turn, has a renderer backend with the promising nameText.Blaze.Renderer.Pretty.So I think what should work is if you run your Hamlet templates to get the final
Html, and then render it yourself by callingText.Blaze.Renderer.Pretty.renderMarkup.