Skip to content

Commit

Permalink
Link to minijinja-contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jun 11, 2024
1 parent 77dd1bd commit f2bd686
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion minijinja/src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f2bd686

Please sign in to comment.