Reference to compile_templates
authorArmin Ronacher <armin.ronacher@active-4.com>
Sat, 29 Jan 2011 19:26:14 +0000 (20:26 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sat, 29 Jan 2011 19:26:14 +0000 (20:26 +0100)
jinja2/loaders.py

index bd435e8b086d7c2c4916c49500850f2edfa44071..f8420c7aeb8520a7950c247af2006e6f41ad1d23 100644 (file)
@@ -397,6 +397,8 @@ class ModuleLoader(BaseLoader):
     ...     ModuleLoader('/path/to/compiled/templates'),
     ...     FileSystemLoader('/path/to/templates')
     ... ])
+
+    Templates can be precompiled with :meth:`Environment.compile_templates`.
     """
 
     has_source_access = False