bodil / typed-html

Type checked JSX for Rust
Mozilla Public License 2.0
1.87k stars 62 forks source link

SVG #43

Open johnpmayer opened 5 years ago

johnpmayer commented 5 years ago

Would this be a separate project, as the SVG spec is distinct(?) from the rest of HTML5, or could this be something that could be added to this library.

Also, are the declared elements generated from a standard schema? I.e. I could imagine implementing the svg elements via code generation from the SVG XML schema

bodil commented 5 years ago

Ideally it should be a separate project, but I don't think typed-html is flexible enough for that as it stands. I'd definitely consider merging SVG tags in if that turns out to be the case.

I found it easier to just write up the HTML elements by hand rather than writing a useful generator, tbh, but for SVG I think the opposite could be true.