Skip to content

Commit

Permalink
Simplify example for ModuleLoader
Browse files Browse the repository at this point in the history
The `ModuleLoader` example seems copy pasted from `ChoiceLoader`. As a result it's not immediately clear how their API differ.
  • Loading branch information
charlax authored and davidism committed Dec 18, 2024
1 parent 13ce60b commit 955d7da
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 955d7da

Please sign in to comment.