Replies: 2 comments 2 replies
-
I’m all for this feature, but I think it would be quite difficult to implement it without impacting performance. I expect just checking a If this is a global setting, it might be possible to generate the tag methods with or without pretty output built-in. This wouldn't have any runtime performance impact on normal output, but you'd have to somehow have the setting configured before |
Beta Was this translation helpful? Give feedback.
-
This would be really nice actually, and I've found myself wanting it a few times. However, I see it as a dev only feature. So maybe it can be enabled globally in non-prod environments, as we don't care about performance as much there? |
Beta Was this translation helpful? Give feedback.
-
It would be nice having the option to output pretty/indented HTML instead of the long string. I can use
Nokogiri
orHtmlBeautifier
to do this, but they may change the output.I think since Phlex already has the context of the opening/closing tags, maybe this is something that it could handle. Maybe as a plugin or a custom target?
Beta Was this translation helpful? Give feedback.
All reactions