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 don't see any examples that show how to conditionally include elements in a template. Is that possible? If so, what is the syntax>
The text was updated successfully, but these errors were encountered:
@mvolkmann Not sure if this is still relevant, but in case you haven't seen: There are examples for using conditional logic with OCaml and Reason
If you wanted to replicate the React idiom of
<body> {enabled && <div>parameter is enabled</div>} </body>
you could do it like this
<body> % if enabled then begin <div>parameter is enabled</div> % end; </body>
Note that it's important that the %s are the first character in the line.
%
Sorry, something went wrong.
Thanks @maxRN! My apologies, I've been super behind on issues, catching up slowly, and this is very helpful!
No branches or pull requests
I don't see any examples that show how to conditionally include elements in a template. Is that possible? If so, what is the syntax>
The text was updated successfully, but these errors were encountered: