projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
09ba909
)
updated the docs for the new Twig_ExistsLoaderInterface interface
author
Fabien Potencier
<fabien.potencier@gmail.com>
Fri, 19 Oct 2012 12:36:16 +0000 (14:36 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Fri, 19 Oct 2012 12:36:16 +0000 (14:36 +0200)
doc/api.rst
patch
|
blob
|
history
diff --git
a/doc/api.rst
b/doc/api.rst
index
8a2b728
..
e6d6d7e
100644
(file)
--- a/
doc/api.rst
+++ b/
doc/api.rst
@@
-262,6
+262,11
@@
As an example, here is how the built-in ``Twig_Loader_String`` reads::
The ``isFresh()`` method must return ``true`` if the current cached template
is still fresh, given the last modification time, or ``false`` otherwise.
+.. tip::
+
+ As of Twig 1.11.0, you can also implement ``Twig_ExistsLoaderInterface``
+ to make your loader faster when used with the chain loader.
+
Using Extensions
----------------