lambda-fairy / maud

:pencil: Compile-time HTML templates for Rust
https://maud.lambda.xyz
Apache License 2.0
2.09k stars 137 forks source link

Allow for XML void tag syntax #388

Closed ElnuDev closed 1 year ago

ElnuDev commented 1 year ago

Hello! I am aware that what I'm asking for is a little bit outside of the scope of maud (SVG templates, rather than HTML templates) but I'm wondering, would it be possible to have an option for properly closing void tags? For instance, somehow having an option/alternate syntax such that br; outputs <br /> rather than <br>. This is required for SVG and XML more broadly, and I do know there are some people who want their HTML to be XML-compliant like this, so I think it's worth considering.

This could potentially be behind a feature flag. If you're open to the idea, I'd be happy to make a pull request.

Thanks!

lambda-fairy commented 1 year ago

Hi @ElnuDev, I believe #62 is a duplicate of this. So I will close in favor of that issue. Thanks!

ElnuDev commented 1 year ago

Alright, thanks! Somehow I didn't notice that issue.