diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-09-06 20:03:22 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-09-06 20:03:47 +0200 |
commit | 5738ad3cef9942ce90b841a5c7eaef3c9d714993 (patch) | |
tree | cb5661bd81d8dc45cc6e4d9df9d3e8786aae52ad | |
parent | 2543b3422825fa9fdc5cd8f75f6b654398a888dd (diff) | |
download | askama-5738ad3cef9942ce90b841a5c7eaef3c9d714993.tar.gz askama-5738ad3cef9942ce90b841a5c7eaef3c9d714993.tar.bz2 askama-5738ad3cef9942ce90b841a5c7eaef3c9d714993.zip |
Strip documentation intro that duplicates the README
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 //! |