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

If Else template construct not discussed in docs #79

Open
Xliff opened this issue Oct 8, 2022 · 3 comments
Open

If Else template construct not discussed in docs #79

Xliff opened this issue Oct 8, 2022 · 3 comments

Comments

@Xliff
Copy link
Collaborator

Xliff commented Oct 8, 2022

Is there a repository for them that I can make a PR against?

@Altai-man
Copy link
Member

Yes, see https://github.com/croservices/cro/blob/master/docs/reference/cro-webapp-template.md

There is no if-else syntax though, so it has to be written as if + !if pair.

@Xliff
Copy link
Collaborator Author

Xliff commented Oct 8, 2022

Actually, there is. It should have been a part of the most recent release. See:

https://github.com/croservices/cro-webapp/blob/master/t/test-data/cond-if-else.crotmp

You are correct in that there are two sections, but the else part does not need a conditional.

@jnthn
Copy link
Member

jnthn commented Oct 8, 2022

It should have been a part of the most recent release.

It hasn't appeared in a release yet (last Cro release was long ago). Updating docs to cover new additions since the last release is one of the main release blockers, so doc additions are welcome to help things along.

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

No branches or pull requests

3 participants