> For the complete documentation index, see [llms.txt](https://olexsyn.gitbook.io/enote/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://olexsyn.gitbook.io/enote/progr/python/modules/jinja/filtri-i-metodi.md).

# Фільтри і методи

(деяки приклади)

Довжина списку:

```django
{% if USERS_LIST|length == 0 %}
```

Можна використовувати **синтаксис |фільтра**:

```django
{% elif  student.department|upper != "MATHS DEPARTMENT" %}
    Other department
{% endif %}
```

Або **синтаксис .методу()**:

```django
{% elif  student.department.upper() != "MATHS DEPARTMENT" %}
    Other department
{% endif %}
```

For **Capitalize**

```python
{{ 'helLo WOrlD'|capfirst }}
```

For **UPPER CASE**

```python
{{ 'helLo WOrlD'|upper }}
```

For **lower case**

```python
{{ 'helLo WOrlD'|lower }}
```

For **title**

```python
{{ 'helLo WOrlD'|title }}
```

For **ljust**

```python
{{ 'helLo WOrlD'|ljust }}
```

For **rjust**

```python
{{ 'helLo WOrlD'|rjust }}
```

For **wrap**

```python
{{ 'helLo WOrlD'|wrap }}
```
