Skip to content
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

derive: in complex conditions, wrap terms in as_bool() #203

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Oct 16, 2024

  1. Configuration menu
    Copy the full SHA
    a65a09b View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. Configuration menu
    Copy the full SHA
    ee08363 View commit details
    Browse the repository at this point in the history
  2. derive: in complex conditions, wrap terms in as_bool()

    Before this PR, the whole condition in `{% if cond %}` got wrapped in
    `as_bool(&cond)`. With is PR, the individual terms in a binary operation
    `&&` or `||`, or unary operation `!` get wrapped in `as_bool()`.
    Kijewski committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    358165b View commit details
    Browse the repository at this point in the history