aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src/generator.rs
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-10-01 18:01:43 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-10-01 18:01:43 +0200
commitcb6d45008b63e8c9bdcdff10c3f948c094096feb (patch)
tree54a70924c08e7948e943304d3ced416104cdbfca /askama_shared/src/generator.rs
parent614ed6d16ff5aa71d0522bc819cce59a91f7164c (diff)
downloadaskama-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/src/generator.rs')
-rw-r--r--askama_shared/src/generator.rs2
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.
},
}
}