From f2bd686d0db91c5b2aa895454cae575f92a22e2e Mon Sep 17 00:00:00 2001 From: Armin Ronacher <armin.ronacher@active-4.com> Date: Tue, 11 Jun 2024 11:49:08 +0200 Subject: [PATCH] Link to minijinja-contrib --- minijinja/src/environment.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/minijinja/src/environment.rs b/minijinja/src/environment.rs index 44a02fa2..8c23f266 100644 --- a/minijinja/src/environment.rs +++ b/minijinja/src/environment.rs @@ -318,7 +318,9 @@ impl<'source> Environment<'source> { /// ``` /// /// This can be used to increase the compatibility with Jinja2 templates that might - /// call Python methods on objects which are not available in minijinja. + /// call Python methods on objects which are not available in minijinja. A range of + /// common Python methods is implemented in `minijinja-contrib`. For more information + /// see [minijinja_contrib::pycompat](https://docs.rs/minijinja-contrib/latest/minijinja_contrib/pycompat/). pub fn set_unknown_method_callback<F>(&mut self, f: F) where F: Fn(&State, &Value, &str, &[Value]) -> Result<Value, Error> + Sync + Send + 'static,