From cb6d45008b63e8c9bdcdff10c3f948c094096feb Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sun, 1 Oct 2017 18:01:43 +0200 Subject: Add comment explaining why Extends doesn't need whitespace handling --- askama_shared/src/generator.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'askama_shared/src/generator.rs') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index acb3f15..0d05c0e 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -370,6 +370,8 @@ impl<'a> Generator<'a> { if let AstLevel::Nested = level { panic!("extend blocks only allowed at the top level"); } + // No whitespace handling: child template top-level is not used, + // except for the blocks defined in it. }, } } -- cgit