Merge pull request #957 from Shopify/min-max-filter-docs

Add docs for at_least and at_most filters
This commit is contained in:
Adam Hollett
2017-12-14 10:58:35 -05:00
committed by GitHub
2 changed files with 60 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
---
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>
```
5
```
<p class="code-label">Input</p>
{% raw %}
```liquid
{{ 4 | at_least: 3 }}
```
{% endraw %}
<p class="code-label">Output</p>
```
4
```
+30
View File
@@ -0,0 +1,30 @@
---
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>
```
4
```
<p class="code-label">Input</p>
{% raw %}
```liquid
{{ 4 | at_most: 3 }}
```
{% endraw %}
<p class="code-label">Output</p>
```
3
```