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
I have a template with the following snippet:
if (A < B)
RazorEngine compiles this to:
if (A WriteLiteral("< B)\n {");
This is inside a @{} Razor code block, so the less than in this case should not be treated as the start of a HTML tag.
The text was updated successfully, but these errors were encountered:
A messy workaround in the interim is to:
A) Move the condition into your model, by exposing a LessThan(A, B) method; or B) Inverse the condition ie if (!(A >= B))
LessThan(A, B)
if (!(A >= B))
Sorry, something went wrong.
No branches or pull requests
I have a template with the following snippet:
RazorEngine compiles this to:
This is inside a @{} Razor code block, so the less than in this case should not be treated as the start of a HTML tag.
The text was updated successfully, but these errors were encountered: