From 09514f07ee1a649281e5b41015b99235309416ea Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 6 Sep 2017 20:03:22 +0200 Subject: Tighten up and expand documentation on variables --- askama/src/lib.rs | 6 ++---- 1 file 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, -- cgit