Closed larafale closed 7 years ago
Unfortunately, no. "pretty" HTML output is something that will probably not be implemented in Blade. The reasons for this are:
As a workaround, take your Blade-generated HTML and run it through a tool like "tidy"
There is a tidy wrapper lib for Node.js: https://github.com/leondealmeida/node-tidy
Thoughts? I'm closing this issue for now...
This is very important for debugging; HTML output can get pretty complex with nested partials in a large project. Sometimes one needs to debug on a platform without an inspection view immediately available, and sometimes you want to see HTML before Javascript has modified the source, as you would see by default in a console.
This should be a default in development environment when possible.
This would be extremely useful for debugging. When trying to find errors, chrome dev tools says every error is on line 1...
This seems like a fairly popular request. I am curious... what is wrong with the proposed workaround (running the problematic HTML through a tool like tidy)?
There is nothing wrong with it but it would be very nice if the language itself had it. It's like if sass only would output minified css, the developer needs different formatting and has to add all that middleware.
Alright, fair enough. I'll re-open this issue. I won't have time this year to work on it, but I will accept pull requests. :)
Closing this issue again, but I'd be happy to take PRs.
hello there, is there anyway to display "pretty" output in express like Jade ?
app.locals.pretty = true
set a new line for each html tag with jade