martenframework / marten

The pragmatic web framework.
https://martenframework.com
MIT License
425 stars 24 forks source link

add `odd?` and `even?` to the loop tag #232

Closed kates closed 5 months ago

kates commented 5 months ago

Used modulo 2 to check for "even-ness". Zero is considered as even.

https://github.com/martenframework/marten/issues/201

ellmetha commented 5 months ago

Thanks for adding this!