aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-09-06 20:03:22 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-09-06 20:03:47 +0200
commit832c23bf3ae07aad210b8fccde5d3917bcdc1414 (patch)
treec0a6f13a29ab3315a840a697abc3b592b909493c
parent5738ad3cef9942ce90b841a5c7eaef3c9d714993 (diff)
downloadaskama-832c23bf3ae07aad210b8fccde5d3917bcdc1414.tar.gz
askama-832c23bf3ae07aad210b8fccde5d3917bcdc1414.tar.bz2
askama-832c23bf3ae07aad210b8fccde5d3917bcdc1414.zip
Slightly extend introduction to creating templates
Diffstat (limited to '')
-rw-r--r--askama/src/lib.rs7
1 files 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