From 7cdc482bc4a10f1873c73a30cd01c8ea29027264 Mon Sep 17 00:00:00 2001 From: Nithin Bekal Date: Mon, 4 Dec 2017 18:00:21 -0500 Subject: [PATCH 1/2] 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 %} From 0589cf4aacc04d92c95416f56f39858022578c58 Mon Sep 17 00:00:00 2001 From: Adam Hollett Date: Thu, 14 Dec 2017 10:10:19 -0500 Subject: [PATCH 2/2] Remove raw tag from non-Liquid code blocks --- filters/at_least.md | 4 ---- filters/at_most.md | 4 ---- 2 files changed, 8 deletions(-) diff --git a/filters/at_least.md b/filters/at_least.md index 1560dce..507eeb0 100644 --- a/filters/at_least.md +++ b/filters/at_least.md @@ -13,11 +13,9 @@ Limits a number to a minimum value. {% endraw %}

Output

-{% raw %} ``` 5 ``` -{% endraw %}

Input

{% raw %} @@ -27,8 +25,6 @@ Limits a number to a minimum value. {% endraw %}

Output

-{% raw %} ``` 4 ``` -{% endraw %} diff --git a/filters/at_most.md b/filters/at_most.md index e467bb2..3871f7f 100644 --- a/filters/at_most.md +++ b/filters/at_most.md @@ -13,11 +13,9 @@ Limits a number to a maximum value. {% endraw %}

Output

-{% raw %} ``` 4 ``` -{% endraw %}

Input

{% raw %} @@ -27,8 +25,6 @@ Limits a number to a maximum value. {% endraw %}

Output

-{% raw %} ``` 3 ``` -{% endraw %}