mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 15:25:19 +00:00
Slightly extend introduction to creating templates
This commit is contained in:
parent
5738ad3cef
commit
832c23bf3a
@ -9,9 +9,10 @@
|
|||||||
//!
|
//!
|
||||||
//! # Creating Askama templates
|
//! # Creating Askama templates
|
||||||
//!
|
//!
|
||||||
//! An Askama template is just a text file, in the UTF-8 encoding.
|
//! An Askama template is a `struct` definition which provides the template
|
||||||
//! It can be used to generate any kind of text-based format.
|
//! context combined with a UTF-8 encoded text file (or inline source, see
|
||||||
//! You can use whatever extension you like.
|
//! 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,
|
//! A template consists of **text contents**, which are passed through as-is,
|
||||||
//! **expressions**, which get replaced with content while being rendered, and
|
//! **expressions**, which get replaced with content while being rendered, and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user