diff options
Diffstat (limited to '')
-rw-r--r-- | askama/src/lib.rs | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/askama/src/lib.rs b/askama/src/lib.rs index 337a7e0..fadd0b0 100644 --- a/askama/src/lib.rs +++ b/askama/src/lib.rs @@ -4,30 +4,8 @@ //! This is done using a custom derive implementation (implemented //! in [`askama_derive`](https://crates.io/crates/askama_derive)). //! -//! # Example template -//! -//! ```text -//! {% extends "layout.html" %} -//! {% block body %} -//! <ul> -//! {% for user in users %} -//! <li><a href="{{ user.url }}">{{ user.username }}</a></li> -//! {% endfor %} -//! </ul> -//! {% endblock %} -//! ``` -//! -//! # Feature highlights -//! -//! * Construct templates using a familiar, easy-to-use syntax -//! * Benefit from the safety provided by Rust's type system -//! * Optional built-in support for Rocket and Iron web frameworks -//! * Template code is compiled into your crate for optimal performance -//! * Templates only convert your data as needed -//! * Templates can access your Rust types directly, according to Rust's privacy rules -//! * Debugging features to assist you in template development -//! * Templates must be valid UTF-8 and produce UTF-8 when rendered -//! * Works on stable Rust +//! For feature highlights and a quick start, please review the +//! [README](https://github.com/djc/askama/blob/master/README.md). //! //! # Creating Askama templates //! |