added modulo to the list of filters

cboettig
2012-05-28 15:32:13 -07:00
parent ee64e5b6e6
commit 4a7ddc49ca
+1
@@ -68,6 +68,7 @@ Hello {{ 'now' | date: "%Y %h" }}
* `times` - multiplication *e.g* `{{ 5 | times:4 }} #=> 20`
* `divided_by` - division *e.g.* `{{ 10 | divided_by:2 }} #=> 5`
* `split` - split a string on a matching pattern *e.g.* `{{ "a~b" | split:~ }} #=> ['a','b']`
* `modulo` - remainder, *e.g.* `{{ 3 | modulo:2 }} #=> 1`
## Tags