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

array count tag is absent in Leaf 4 #184

Closed
Igor-Palaguta opened this issue Nov 11, 2020 · 1 comment
Closed

array count tag is absent in Leaf 4 #184

Igor-Palaguta opened this issue Nov 11, 2020 · 1 comment

Comments

@Igor-Palaguta
Copy link
Contributor

Igor-Palaguta commented Nov 11, 2020

In Leaf 3 count tag worked for arrays, but now it is absent in Leaf 4

      #if(count(images) > 0):
      #count(images) images
      #else:
      No images
      #endif

Also probably leaf should fail in case if tag is not found

Leaf version
"4.0.0-rc.1.4"

@0xTim
Copy link
Member

0xTim commented Nov 11, 2020

Count has been added in vapor/leaf-kit#79 and is just waiting for a review before being tagged

@0xTim 0xTim closed this as completed Nov 11, 2020
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

2 participants