diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-10-01 18:01:43 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-10-01 18:01:43 +0200 |
commit | cb6d45008b63e8c9bdcdff10c3f948c094096feb (patch) | |
tree | 54a70924c08e7948e943304d3ced416104cdbfca /askama_shared | |
parent | 614ed6d16ff5aa71d0522bc819cce59a91f7164c (diff) | |
download | askama-cb6d45008b63e8c9bdcdff10c3f948c094096feb.tar.gz askama-cb6d45008b63e8c9bdcdff10c3f948c094096feb.tar.bz2 askama-cb6d45008b63e8c9bdcdff10c3f948c094096feb.zip |
Add comment explaining why Extends doesn't need whitespace handling
Diffstat (limited to 'askama_shared')
-rw-r--r-- | askama_shared/src/generator.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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. }, } } |