From 92b0ec434f35dd5e6094031bc6f525748044437f Mon Sep 17 00:00:00 2001 From: Mark Story Date: Thu, 10 Mar 2011 22:35:36 -0500 Subject: [PATCH] Updating documentation for blocks, mentioning that block names cannot contain -. Fixes #277 --- doc/templates.rst | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/doc/templates.rst b/doc/templates.rst index ef940e1..5003eae 100644 --- a/doc/templates.rst +++ b/doc/templates.rst @@ -275,7 +275,8 @@ template. This limitation exists because a block tag works in "both" directions. That is, a block tag doesn't just provide a hole to fill - it also defines the content that fills the hole in the *parent*. If there were two similarly-named ``{% block %}`` tags in a template, that template's parent -wouldn't know which one of the blocks' content to use. +wouldn't know which one of the blocks' content to use. Block names should +consist of alphanumeric characters, and underscores. Dashes are not permitted. If you want to print a block multiple times you can however use the ``block`` function: -- 1.7.2.5