Expose ElmHtml.ToString.FormatOptions
in Api.routes
#304
klaftertief
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
That seems like a good idea, I went ahead and added it as a parameter here, it will be included in the 3.0 release 👍 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
Api.routes
function to create arbitrary static files is automatically called with thehtmlToString : Html Never -> String)
function. It is currently configured to render without indentation or newlines.The underlying
ElmHtml.ToString
module supports format options to configure the rendering. Would it be possible to extend theApi.routes
API in an upcoming major release to be able to use theElmHtml.ToString.FormatOptions
?The reason is because I'd like to generate files that are meant to be user-readable and diff-able.
Beta Was this translation helpful? Give feedback.
All reactions