From 1a2175fc4992b74a473845eab0972d464086398f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 25 Oct 2011 14:11:52 +0200 Subject: [PATCH] added a tip for the block tag --- doc/functions/block.rst | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/doc/functions/block.rst b/doc/functions/block.rst index fd571ef..b7df6d8 100644 --- 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>` -- 1.7.2.5