Browse code

updated the docs for the new Twig_ExistsLoaderInterface interface

Fabien Potencier authored on 19/10/2012 12:36:16
Showing 1 changed files
... ...
@@ -262,6 +262,11 @@ As an example, here is how the built-in ``Twig_Loader_String`` reads::
262 262
 The ``isFresh()`` method must return ``true`` if the current cached template
263 263
 is still fresh, given the last modification time, or ``false`` otherwise.
264 264
 
265
+.. tip::
266
+
267
+    As of Twig 1.11.0, you can also implement ``Twig_ExistsLoaderInterface``
268
+    to make your loader faster when used with the chain loader.
269
+
265 270
 Using Extensions
266 271
 ----------------
267 272