templates - All
1
+
-
Another IfModulo Template Tag Or If Else End Tutor
- In Templates · Tags · By paul · Aged 9 months, 2 weeks · 0 Comments · Details...
- For one of my pet projects Joost List, I wanted to create a 2 column layout for the videos. I looked at existing solutions and the first one that popped up was the Django Snippets: If Modulo Tag solution. I looked at the solution, thought it was overkill for what I needed, and proceeded to roll my own tag. The code is below but before copying it read the Django DIVISIBLEBY documentation.
Most Popular
Fastest Rising
Just Published