Errors using conditionals in vweb templates #19475
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: vweb
Bugs/feature requests, that are related to the `vweb`.
Describe the bug
I am getting a couple different errors when I try to use conditionals inside templates.
While troubleshooting, I also noticed that templates don't handle HTML comments. Commenting out the conditional section of the template with
<!--
<...>-->
does not prevent the compiler from trying to process the code inside, and it still fails. I can open another issue for this if you'd like.Reproduction Steps
main.v
templates/base.html
Single-line:
Multi-line:
Expected Behavior
Code should compile and produce:
Current Behavior
The single-line version fails with:
The multi-line version fails with:
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.1 1476daf
Environment details (OS name and version, etc.)
Note
You can vote for this issue using the 👍 reaction. More votes increase the issue's priority for developers.
Take into account that only the 👍 reaction counts as a vote.
Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered: