render-rs / render.rs

🔏 A safe and simple template engine with the ergonomics of JSX
https://docs.rs/render
MIT License
238 stars 23 forks source link

Attribute / Keyword Clash #13

Closed theashguy closed 4 years ago

theashguy commented 4 years ago

Something I noticed last night was that the module doesn't seem to handle clashes between attributes (like label's for or input's type nicely). They throw saying they're looking for braces, though I'm pretty sure the intention is not to wrap the attr itself in brace syntax in these situations (unless it is and I've got it wrong!).

Test cases...

<input type={"checkbox"} /> <label for={"some-input-ref"} />

vpzomtrrfrt commented 4 years ago

Is there any workaround for this?