aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar Kelly Thomas Kline <kellytk@sw-e.org>2021-10-12 11:43:30 -0700
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2021-10-13 13:59:12 +0200
commit4582b624b28c1ccaebccac7bd44915dadbe7443d (patch)
tree7a3328f1cbc712443a1f95f69be5f371aadc790a /askama_shared
parent4ab7e5dab5dc22ae722b8eb29be58de4292450e8 (diff)
downloadaskama-4582b624b28c1ccaebccac7bd44915dadbe7443d.tar.gz
askama-4582b624b28c1ccaebccac7bd44915dadbe7443d.tar.bz2
askama-4582b624b28c1ccaebccac7bd44915dadbe7443d.zip
Fix support for raw method identifiers
Diffstat (limited to '')
-rw-r--r--askama_shared/src/generator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs
index 3bcb5d9..f6d7cca 100644
--- a/askama_shared/src/generator.rs
+++ b/askama_shared/src/generator.rs
@@ -1284,7 +1284,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
self.visit_expr(buf, obj)?;
}
- buf.write(&format!(".{}(", method));
+ buf.write(&format!(".{}(", normalize_identifier(method)));
self._visit_args(buf, args)?;
buf.write(")");
Ok(DisplayWrap::Unwrapped)