diff options
Diffstat (limited to '')
-rw-r--r-- | askama/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/askama/src/lib.rs b/askama/src/lib.rs index 823d48f..a83aab2 100644 --- a/askama/src/lib.rs +++ b/askama/src/lib.rs @@ -258,6 +258,12 @@ //! Expressions can be grouped using parentheses. //! The HTML special characters `&`, `<` and `>` will be replaced with their //! character entities unless the `escape` mode is disabled for a template. +//! Methods can be called on variables that are in scope, including `self`. +//! +//! **Warning**: if the result of an expression (a `{{ }}` block) is +//! equivalent to `self`, this can result in a stack overflow from infinite +//! recursion. This is because the `Display` implementation for that expression +//! will in turn evaluate the expression and yield `self` again. //! //! ## Comments //! |