Closed martin-kolarik closed 2 years ago
I like the idea, but I don't like the syntax:
class! { "foo"
.style("background-color", "green")
}
Maybe it could use this syntax instead?
class! {
#![prefix = "foo"]
.style("background-color", "green")
}
Or possibly this syntax:
class!("foo", {
.style("background-color", "green")
})
Definitely, the syntax is up to you, thanks. So, should I modify my PR?
Yes, please. Since it's for debugging, I think the #![prefix]
syntax is probably the best.
Thanks!
That was fast! I haven't managed to comment anything :-).
Simple change adding variant into class! macro. The purpose is to ease development/debugging in browsers' devtools, where customized style names are far more descriptive.