diff options
Diffstat (limited to 'askama_shared/src/generator.rs')
-rw-r--r-- | askama_shared/src/generator.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index dccda93..ec468e5 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -1484,6 +1484,12 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { } self.visit_char_lit(buf, s); } + Target::BoolLit(s) => { + if first_level { + buf.write("&"); + } + buf.write(s); + } } } |