-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
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
Possible partial parser bug #229
Comments
You were using a incomplete partial block, just remove # . And yes Error
output sucks , I will improve it.
El sáb., 3 jul. 2021 22:45, Guillaume Xavier Taillon <
***@***.***> escribió:
… Hello,
I'm getting a macro panick when the character '}' is present in a
partial's attribute value[0]:
error: proc macro panicked
--> src/bin/x.rs:y:z
|127 | .body(auto!(ywrite_min!(String, "{{> pages/query }}"))))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: called `Option::unwrap()` on a `None` value
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
Eg:
{{#> root/base style = "form textarea { box-sizing: border-box; width: 100%; max-width:1024px; }" }}-----------------------------------------------------------------------------------------------^
Also fails with
}}
}}}
\}
\\}
System versions
stable-x86_64-unknown-linux-gnu
rustc 1.53.0 (53cb7b09b 2021-06-17)
Ubuntu 20.04.2 LTS
Best,
[0] https://yarte.netlify.app/templating/partial.html
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#229>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUBACJ3FPJ3IKI5QQKQOP3TV5ZGPANCNFSM47YO7UJQ>
.
|
@gxtaillon Did this solve the problem? Any questions? Close? |
Removing the # produces another error that looks like #211. Closing since I can work around it Thank you |
You must have an error in the template. Use the derivative that does not have that bug in the error output, you can use it only to develop the templates. Soon I will be calmer and I will put full time. Thanks for use yarte |
Close in favor of #211 |
Hello,
I can work around this issue but it would be very convenient to be able to declare styles to put the
<head>
in the same hbs file where they are used.I'm getting a macro panick when the character '}' is present in a partial's attribute value[0]:
Eg:
Also fails with
System versions:
Best,
[0] https://yarte.netlify.app/templating/partial.html
The text was updated successfully, but these errors were encountered: