Changes between Initial Version and Version 1 of Ticket #24232, comment 2


Ignore:
Timestamp:
Jan 30, 2015, 12:28:58 PM (10 years ago)
Author:
Markus Amalthea Magnuson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24232, comment 2

    initial v1  
    11#9173 is for rendering a block only if a child template also defines that block and has some content in it.
    22
    3 This ticket is for the more general usage of rendering a block only if some condition is true. We cannot currently put block tags inside if tags, and this would solve that.
     3This ticket is for the more general usage of rendering a block only if some condition is true. We cannot currently put `{% block %}` tags inside `{% if %}` tags, and this would solve that.
     4
     5(Or rather, we can do that, but the block will always be rendered.)
Back to Top