From 4a7ddc49ca7b5c85bde88dd316d13949f86ec4a5 Mon Sep 17 00:00:00 2001 From: cboettig Date: Mon, 28 May 2012 15:32:13 -0700 Subject: [PATCH] added modulo to the list of filters --- Liquid-for-Designers.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Liquid-for-Designers.md b/Liquid-for-Designers.md index a02498b..87c395f 100644 --- a/Liquid-for-Designers.md +++ b/Liquid-for-Designers.md @@ -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