From ce224cdb3de91bce821501d0555ed3abe027b3d9 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 27 May 2020 15:18:14 +0200 Subject: Tweak example in README --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 17f718b..842db3b 100644 --- a/README.md +++ b/README.md @@ -81,13 +81,11 @@ Hello, {{ name }}! In any Rust file inside your crate, add the following: ```rust -extern crate askama; // for the Template trait and custom derive macro - use askama::Template; // bring trait in scope #[derive(Template)] // this will generate the code... #[template(path = "hello.html")] // using the template in this path, relative - // to the templates dir in the crate root + // to the `templates` dir in the crate root struct HelloTemplate<'a> { // the name of the struct can be anything name: &'a str, // the field name should match the variable name // in your template -- cgit