mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 07:20:55 +00:00
Change deprecated as_ref
to ref
Add a line about `ref` renaming to the upgrade guide
This commit is contained in:
parent
cd13e4f148
commit
0ce68a32f8
@ -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 %}
|
||||
```
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user