Simplify example for ModuleLoader

The `ModuleLoader` example seems copy pasted from `ChoiceLoader`. As a result it's not immediately clear how their API differ.
This commit is contained in:
Charles-Axel Dein 2022-07-26 11:03:16 +02:00 committed by David Lord
parent 13ce60bad8
commit 955d7daf3d
No known key found for this signature in database
GPG Key ID: 43368A7AA8CC5926

View File

@ -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`.
"""