Closed fananek closed 3 years ago
(@fananek just a pointer to how I implemented it for Leaf 1.x https://github.com/vapor/template-kit/pull/19)
@grundoon Thanks, but it's not relevant anymore. Leaf has been completely rebuilt. I have it almost ready for Leaf 4. Just making few more tests.
Closed via #88
Description
Modulo (%) operation is not supported at the moment. It can be used e.g. for calculation even/odd rows. Zebra striped tables or grids are pretty common design requirement.
example psudo-code:
Solution
Implement function which handles modulo operation for
Int
as well asDouble
input values. Already working on pull-request.