Add docs for at_least and at_most filters

This commit is contained in:
Nithin Bekal
2017-12-04 18:00:21 -05:00
parent fbe0b39d85
commit 7cdc482bc4
2 changed files with 68 additions and 0 deletions

34
filters/at_least.md Normal file
View File

@@ -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.
<p class="code-label">Input</p>
{% raw %}
```liquid
{{ 4 | at_least: 5 }}
```
{% endraw %}
<p class="code-label">Output</p>
{% raw %}
```
5
```
{% endraw %}
<p class="code-label">Input</p>
{% raw %}
```liquid
{{ 4 | at_least: 3 }}
```
{% endraw %}
<p class="code-label">Output</p>
{% raw %}
```
4
```
{% endraw %}

34
filters/at_most.md Normal file
View File

@@ -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.
<p class="code-label">Input</p>
{% raw %}
```liquid
{{ 4 | at_most: 5 }}
```
{% endraw %}
<p class="code-label">Output</p>
{% raw %}
```
4
```
{% endraw %}
<p class="code-label">Input</p>
{% raw %}
```liquid
{{ 4 | at_most: 3 }}
```
{% endraw %}
<p class="code-label">Output</p>
{% raw %}
```
3
```
{% endraw %}