Open richard-uk1 opened 4 years ago
Any questions feel free to ask. :)
Neat! This isn't really something I want to merge into dodrio
itself, but I encourage tinkering with it as its own crate!
Do you have an example of usage anywhere?
I am actually using this live in a production website (https://scrumbles.uk). Maybe not wise, but seems to be working well.
I'm not really advocating for merging this, rather I'm drawing your attention to its existence. I got bored of writing out the builder methods verbatim, so I made a macro to do codegen for me a la jsx. It can do some transformations for you, but you've always got a
{}
get-out, where tokens in the braces are just copied verbatim. It also uses a style lib I've been working on to typecheck css styles at compiletime.Anyway as I said, just sharing in case it is interesting to anyone.