projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
c178c28
)
Grammatical fix.
author
Mark Story
<mark@mark-story.com>
Mon, 27 Jun 2011 11:28:17 +0000 (07:28 -0400)
committer
Mark Story
<mark@mark-story.com>
Mon, 27 Jun 2011 11:28:17 +0000 (07:28 -0400)
doc/advanced.rst
patch
|
blob
|
history
diff --git
a/doc/advanced.rst
b/doc/advanced.rst
index
12f44b9
..
96d7697
100644
(file)
--- a/
doc/advanced.rst
+++ b/
doc/advanced.rst
@@
-267,7
+267,7
@@
Adding a function is similar to adding a filter. This can be done by calling the
You can also expose extension methods as functions in your templates::
- // $this is an object that implements instance of Twig_ExtensionInterface.
+ // $this is an object that implements Twig_ExtensionInterface.
$twig = new Twig_Environment($loader);
$twig->addFunction('otherFunction', new Twig_Function_Method($this, 'someMethod'));