Skip to content

Conversation

@cappuc
Copy link
Contributor

@cappuc cappuc commented Dec 30, 2024

This PR add a custom filter ternary to add support for ternary operator.
This is not registered by default.
The syntax is inspired by helm template

Example:

{{ true | ternary: "yes", "no" }} // yes
{{ false | ternary: "yes", "no" }} // no

@cappuc cappuc merged commit 813ca79 into main Dec 30, 2024
24 checks passed
@cappuc cappuc deleted the ternary-filter branch February 9, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants