diff options
author | 2017-09-06 20:03:22 +0200 | |
---|---|---|
committer | 2017-09-06 20:03:47 +0200 | |
commit | 09514f07ee1a649281e5b41015b99235309416ea (patch) | |
tree | d6976555c37c4ba54990b6068f9fd9d384178ce2 | |
parent | 697f461b045cd966ebd42124f9fda306c6bc058e (diff) | |
download | askama-09514f07ee1a649281e5b41015b99235309416ea.tar.gz askama-09514f07ee1a649281e5b41015b99235309416ea.tar.bz2 askama-09514f07ee1a649281e5b41015b99235309416ea.zip |
Tighten up and expand documentation on variables
-rw-r--r-- | askama/src/lib.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/askama/src/lib.rs b/askama/src/lib.rs index cbfcd64..b0edb9b 100644 --- a/askama/src/lib.rs +++ b/askama/src/lib.rs @@ -49,10 +49,8 @@ //! //! ## Variables //! -//! Template variables are defined by the template context linked to the -//! template by deriving a `struct`'s implementation for `Template` from -//! a template file's contents. -//! You can use a dot (`.`) to get a variable's attributes. +//! Top-level template variables are defined by the template's context type. +//! You can use a dot (`.`) to access variable's attributes or methods. //! Reading from variables is subject to the usual borrowing policies. //! For example, `{{ name }}` will get the ``name`` field from the template //! context, |