aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-05-27 15:18:14 +0200
committerLibravatar GitHub <noreply@github.com>2020-05-27 15:18:14 +0200
commitce224cdb3de91bce821501d0555ed3abe027b3d9 (patch)
tree42a072604725efd46a1604e3eedf4519ae78de26
parentb5ecf9bd871462463365c2de193c3c5dc1e0bb50 (diff)
downloadaskama-ce224cdb3de91bce821501d0555ed3abe027b3d9.tar.gz
askama-ce224cdb3de91bce821501d0555ed3abe027b3d9.tar.bz2
askama-ce224cdb3de91bce821501d0555ed3abe027b3d9.zip
Tweak example in README
-rw-r--r--README.md4
1 files changed, 1 insertions, 3 deletions
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