mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
added modulo to the list of filters
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user