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
Support ternary expression in archetype v2:
<enum name="color" default="${shape} == 'circle' ? 'red' : 'blue'"> <option value="red" label="Red"/> <option value="green" label="Green"/> <option value="blue" label="Blue"/> </enum>
Update Expression to return a Value instead of boolean a let the caller decide how to resolve the result.
Expression
Value
boolean
Investigate if we can introduce a new syntax for substituting expressions. E.g.
default="#{${shape} == 'circle' ? 'red' : 'blue'}" default="`${shape} == 'circle' ? 'red' : 'blue'}`" default="#{shape == 'circle' ? 'red' : 'blue'}"
The text was updated successfully, but these errors were encountered:
Instead of coming up with a new syntax, we can allow expressions that evaluate to strings. This means that the following must be valid:
default="foo"
default="${foo}"
Sorry, something went wrong.
aserkes
Successfully merging a pull request may close this issue.
Support ternary expression in archetype v2:
Update
Expression
to return aValue
instead ofboolean
a let the caller decide how to resolve the result.Investigate if we can introduce a new syntax for substituting expressions.
E.g.
The text was updated successfully, but these errors were encountered: