diff options
author | Bastien Orivel <bastien@technocreatives.com> | 2022-04-29 13:12:18 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2022-04-29 13:35:20 +0200 |
commit | ea66be1925456285f897bc00a076e4e7af94c313 (patch) | |
tree | b3ae55f1c8f175da0a210e83341514efa7c32920 /testing/tests/macro.rs | |
parent | c3196916710ad26fe5b3429bb1688060108b2f8b (diff) | |
download | askama-ea66be1925456285f897bc00a076e4e7af94c313.tar.gz askama-ea66be1925456285f897bc00a076e4e7af94c313.tar.bz2 askama-ea66be1925456285f897bc00a076e4e7af94c313.zip |
Allow `{% endmacro name %}`
Just migrated a repo from tera to askama and this was one of the only
things that was different. This is also coherent with `{% block %}` for
which I added the same feature years ago.
Diffstat (limited to 'testing/tests/macro.rs')
-rw-r--r-- | testing/tests/macro.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/tests/macro.rs b/testing/tests/macro.rs index e449dd5..6b0eca5 100644 --- a/testing/tests/macro.rs +++ b/testing/tests/macro.rs @@ -9,7 +9,7 @@ struct MacroTemplate<'a> { #[test] fn test_macro() { let t = MacroTemplate { s: "foo" }; - assert_eq!(t.render().unwrap(), "12foo foo foo3"); + assert_eq!(t.render().unwrap(), "12foo foo foo34foo foo5"); } #[derive(Template)] |