Merge pull request #456 from sinder38/update-ref-doc

Update `ref` documentation
This commit is contained in:
Guillaume Gomez 2025-05-26 22:04:05 +02:00 committed by GitHub
commit f3201cfb21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -90,7 +90,7 @@ Output:
Dereferences the given argument.
```jinja
{% let s = String::from("a") | as_ref %}
{% let s = String::from("a") | ref %}
{% if s | deref == String::from("b") %}
{% endif %}
```

View File

@ -127,6 +127,8 @@ give you more in-dept explanations: [docs.rs switching jinja template framework
* The binary operators `|`, `&` and `^` are now called `bitor`, `bitand` and `xor`, resp.
* Filter `as_ref` is now just `ref`
* The feature `"serde-json"` is now called `"serde_json"`.
* The feature `"markdown"` was removed.