Skip to content

Commit

Permalink
Simplify example for ModuleLoader (#1695)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism authored Dec 19, 2024
2 parents 13ce60b + 955d7da commit 791dd3b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/jinja2/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,10 +613,7 @@ class ModuleLoader(BaseLoader):
Example usage:
>>> loader = ChoiceLoader([
... ModuleLoader('/path/to/compiled/templates'),
... FileSystemLoader('/path/to/templates')
... ])
>>> loader = ModuleLoader('/path/to/compiled/templates')
Templates can be precompiled with :meth:`Environment.compile_templates`.
"""
Expand Down

0 comments on commit 791dd3b

Please sign in to comment.