diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-24 15:56:07 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-24 15:56:07 +0100 |
commit | cb48fd814f5b87a9752e89f74bd5d0233a93beb5 (patch) | |
tree | 56676071d7264408d43e27f98a3e34ee5b7f4762 /askama_derive | |
parent | a4250c8c9cc96e174f19f5b937ac43eb504a912b (diff) | |
download | askama-cb48fd814f5b87a9752e89f74bd5d0233a93beb5.tar.gz askama-cb48fd814f5b87a9752e89f74bd5d0233a93beb5.tar.bz2 askama-cb48fd814f5b87a9752e89f74bd5d0233a93beb5.zip |
Take reference to indexed data
Diffstat (limited to 'askama_derive')
-rw-r--r-- | askama_derive/src/generator.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 02993cc..8c95386 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -772,6 +772,7 @@ impl<'a> Generator<'a> { } fn visit_index(&mut self, obj: &Expr, key: &Expr, code: &mut String) -> DisplayWrap { + code.push_str("&"); self.visit_expr(obj, code); code.push_str("["); self.visit_expr(key, code); |