mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Add docs for at_least and at_most filters
This commit is contained in:
34
filters/at_least.md
Normal file
34
filters/at_least.md
Normal 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
34
filters/at_most.md
Normal 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 %}
|
||||
Reference in New Issue
Block a user