diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-05-27 15:18:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 15:18:14 +0200 |
commit | ce224cdb3de91bce821501d0555ed3abe027b3d9 (patch) | |
tree | 42a072604725efd46a1604e3eedf4519ae78de26 | |
parent | b5ecf9bd871462463365c2de193c3c5dc1e0bb50 (diff) | |
download | askama-ce224cdb3de91bce821501d0555ed3abe027b3d9.tar.gz askama-ce224cdb3de91bce821501d0555ed3abe027b3d9.tar.bz2 askama-ce224cdb3de91bce821501d0555ed3abe027b3d9.zip |
Tweak example in README
Diffstat (limited to '')
-rw-r--r-- | README.md | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |