Skip to content

Commit 7cdc482

Browse files
committed
Add docs for at_least and at_most filters
1 parent fbe0b39 commit 7cdc482

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

filters/at_least.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: at_least
3+
description: Liquid filter that limits a number to a minimum value
4+
---
5+
6+
Limits a number to a minimum value.
7+
8+
<p class="code-label">Input</p>
9+
{% raw %}
10+
```liquid
11+
{{ 4 | at_least: 5 }}
12+
```
13+
{% endraw %}
14+
15+
<p class="code-label">Output</p>
16+
{% raw %}
17+
```
18+
5
19+
```
20+
{% endraw %}
21+
22+
<p class="code-label">Input</p>
23+
{% raw %}
24+
```liquid
25+
{{ 4 | at_least: 3 }}
26+
```
27+
{% endraw %}
28+
29+
<p class="code-label">Output</p>
30+
{% raw %}
31+
```
32+
4
33+
```
34+
{% endraw %}

filters/at_most.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: at_most
3+
description: Liquid filter that limits a number to a maximum value
4+
---
5+
6+
Limits a number to a maximum value.
7+
8+
<p class="code-label">Input</p>
9+
{% raw %}
10+
```liquid
11+
{{ 4 | at_most: 5 }}
12+
```
13+
{% endraw %}
14+
15+
<p class="code-label">Output</p>
16+
{% raw %}
17+
```
18+
4
19+
```
20+
{% endraw %}
21+
22+
<p class="code-label">Input</p>
23+
{% raw %}
24+
```liquid
25+
{{ 4 | at_most: 3 }}
26+
```
27+
{% endraw %}
28+
29+
<p class="code-label">Output</p>
30+
{% raw %}
31+
```
32+
3
33+
```
34+
{% endraw %}

0 commit comments

Comments
 (0)