-
Notifications
You must be signed in to change notification settings - Fork 25
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
dynamic attributes cause parse error #23
Comments
Hey @davidszotten, thank you for the detailed report! That’s definitely a reasonable template, and a case that the parser currently doesn’t support. I think the logic for "template syntax in opening tags" simply needs implementing. If you or anyone else is interested in helping with this – well, this might make for a tough first contribution, but as a starter I’d love to have unit tests written for this. The parser is in need of much better tests, so we can make additions like this without risking regressions. Here is the code for future reference: Lines 380 to 422 in f2b448f
|
Another example of a Template
Throwing an error makes sense, there is a missing space between the attributes but Environment
|
👍 good to know about @colmjude. I think that one would be much simpler to address – by the looks of it the problem is that the parser expects attributes to always be separated by whitespace, which as you say feels like a reasonable thing to enforce, but it probably shouldn’t be a (cryptic) parse error: Lines 385 to 396 in 1cb1e33
|
Describe the bug
template:
This seems like a reasonable (albeit slightly unusual) template.
Which terms did you search for in the documentation and issue tracker?
looked at all open and closed issues
(Write your answer here if relevant.)
Environment
The text was updated successfully, but these errors were encountered: