On 10/14/05, Alice <[EMAIL PROTECTED]> wrote: > did anything ever come of it? > > I agree that if a clean implementation cannot be done, it shouldn't. > There was another interesting idea that a block could be referenced as > a variable > > {% block content %} > {% endblock %} > > {{ content }} > > or perhaps > > {{ __content__ }}
Nope, nothing came of that discussion. Being able to store blocks in variables is a good idea -- mostly we'd just have to come up with a good syntax for it. As for your syntax ideas, we probably shouldn't assume that the template doesn't already have a variable named "content", and the double underscores are a bit crufty. Perhaps {% get_block_value "content" %} ? That's kind of verbose... Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org