From 7cdc482bc4a10f1873c73a30cd01c8ea29027264 Mon Sep 17 00:00:00 2001 From: Nithin Bekal Date: Mon, 4 Dec 2017 18:00:21 -0500 Subject: [PATCH] Add docs for at_least and at_most filters --- filters/at_least.md | 34 ++++++++++++++++++++++++++++++++++ filters/at_most.md | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 filters/at_least.md create mode 100644 filters/at_most.md diff --git a/filters/at_least.md b/filters/at_least.md new file mode 100644 index 0000000..1560dce --- /dev/null +++ b/filters/at_least.md @@ -0,0 +1,34 @@ +--- +title: at_least +description: Liquid filter that limits a number to a minimum value +--- + +Limits a number to a minimum value. + +

Input

+{% raw %} +```liquid +{{ 4 | at_least: 5 }} +``` +{% endraw %} + +

Output

+{% raw %} +``` +5 +``` +{% endraw %} + +

Input

+{% raw %} +```liquid +{{ 4 | at_least: 3 }} +``` +{% endraw %} + +

Output

+{% raw %} +``` +4 +``` +{% endraw %} diff --git a/filters/at_most.md b/filters/at_most.md new file mode 100644 index 0000000..e467bb2 --- /dev/null +++ b/filters/at_most.md @@ -0,0 +1,34 @@ +--- +title: at_most +description: Liquid filter that limits a number to a maximum value +--- + +Limits a number to a maximum value. + +

Input

+{% raw %} +```liquid +{{ 4 | at_most: 5 }} +``` +{% endraw %} + +

Output

+{% raw %} +``` +4 +``` +{% endraw %} + +

Input

+{% raw %} +```liquid +{{ 4 | at_most: 3 }} +``` +{% endraw %} + +

Output

+{% raw %} +``` +3 +``` +{% endraw %}