From 832c23bf3ae07aad210b8fccde5d3917bcdc1414 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 6 Sep 2017 20:03:22 +0200 Subject: Slightly extend introduction to creating templates --- askama/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/askama/src/lib.rs b/askama/src/lib.rs index fadd0b0..48ebea5 100644 --- a/askama/src/lib.rs +++ b/askama/src/lib.rs @@ -9,9 +9,10 @@ //! //! # Creating Askama templates //! -//! An Askama template is just a text file, in the UTF-8 encoding. -//! It can be used to generate any kind of text-based format. -//! You can use whatever extension you like. +//! An Askama template is a `struct` definition which provides the template +//! context combined with a UTF-8 encoded text file (or inline source, see +//! below). Askama can be used to generate any kind of text-based format. +//! The template file's extension may can be used to provide content type hints. //! //! A template consists of **text contents**, which are passed through as-is, //! **expressions**, which get replaced with content while being rendered, and -- cgit