We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This doesn't work:
macro_rules! greet { () => ({ let mut result = String::new(); let name = "Pinkie Pie"; html!(result, p { "Hello, " $name "!" }); result }) }
That's because macro_rules! tries to expand $name itself, when it should be handled by Maud instead.
macro_rules!
$name
We can probably work around that by adding a new #splice magic operator. So the code above would look like this:
#splice
// ... html!(result, p { "Hello, " #splice name "!" }); // ...
This works because it doesn't have a $ in it.
$
See rust-lang/rust#6994
The text was updated successfully, but these errors were encountered:
$(expr)
Add tests for issue lambda-fairy#21
244bd91
0e1bd1c
No branches or pull requests
This doesn't work:
That's because
macro_rules!
tries to expand$name
itself, when it should be handled by Maud instead.We can probably work around that by adding a new
#splice
magic operator. So the code above would look like this:This works because it doesn't have a
$
in it.See rust-lang/rust#6994
The text was updated successfully, but these errors were encountered: