-
Notifications
You must be signed in to change notification settings - Fork 57
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
Conditional resolution #59
Comments
You can interpolate whatever you like inside bel elements - take a look at
the choo examples to see some of this in action:
https://github.com/yoshuawuyts/choo/tree/master/examples
…On Wed, Dec 7, 2016 at 9:56 AM Mariusz Nowak ***@***.***> wrote:
Is there any solution of implying if..else logic with templates?
As (as far as I know) we can't put if statement directly in body of ${ },
there is probably a need for dedicated if function e.g. bel.if(condition,
onTrue, onFalse).
Is something as that envisioned, or maybe already there's some solution
(or convention) coined for that?
Unfortunately wiki <https://github.com/shama/bel/wiki> is very silent on
that very common use case.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#59>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWletAEI3G6Ed5jgRPz9Br7Rf_DFz8Qks5rFnTTgaJpZM4LGV2h>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there any solution of implying
if..else
logic with templates?As (as far as I know) we can't put
if
statement directly in body of${ }
, there is probably a need for dedicatedif
function e.g.bel.if(condition, onTrue, onFalse)
.Is something as that envisioned, or maybe already there's some solution (or convention) coined for that?
Unfortunately wiki is very silent on that very common use case.
The text was updated successfully, but these errors were encountered: