projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5483e99
)
added a tip for the block tag
author
Fabien Potencier
<fabien.potencier@gmail.com>
Tue, 25 Oct 2011 12:11:52 +0000 (14:11 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Tue, 25 Oct 2011 12:11:52 +0000 (14:11 +0200)
doc/functions/block.rst
patch
|
blob
|
history
diff --git
a/doc/functions/block.rst
b/doc/functions/block.rst
index
fd571ef
..
b7df6d8
100644
(file)
--- a/
doc/functions/block.rst
+++ b/
doc/functions/block.rst
@@
-12,4
+12,10
@@
times, use the ``block`` function:
{% block body %}{% endblock %}
+.. tip::
+
+ Block names must only contain letters, numbers, and underscores (``_``).
+ The internal regexp reads as follows:
+ ``[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*``.
+
.. seealso:: :doc:`extends<../tags/extends>`, :doc:`parent<../functions/parent>`