From ea66be1925456285f897bc00a076e4e7af94c313 Mon Sep 17 00:00:00 2001
From: Bastien Orivel <bastien@technocreatives.com>
Date: Fri, 29 Apr 2022 13:12:18 +0200
Subject: 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.
---
 testing/tests/macro.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'testing/tests')

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)]
-- 
cgit