Right, but if you will notice there is more than just the text in the
block.
So if I didn't put anything in the header block I would have to
include the DIV with the id=header each time as opposed to just the
block with my header text.
On May 24, 2:06 am, Michael Newman <[EMAIL PROTECTED]> wrote
No, I have tried that and it looks for a header variable in your
template context. It doesn't check if the block exists.
On May 23, 11:15 pm, David Robinson <[EMAIL PROTECTED]> wrote:
> I'm probably missing something about your question, and please excuse me
> if that's the case, but wouldn't you
You can also not put anything inside of the {% block header %} and
then when nothing is provided nothing will show up.
On May 23, 11:15 pm, David Robinson <[EMAIL PROTECTED]> wrote:
> I'm probably missing something about your question, and please excuse me
> if that's the case, but wouldn't you b
I'm probably missing something about your question, and please excuse me
if that's the case, but wouldn't you be able to do this:
{% if header %}
{% block header %}Page Heading{% endblock %}
{% endif %}
Dave
Trey wrote:
> I have an interesting case that I would like to get some input on
I have an interesting case that I would like to get some input on,
perhaps I am just thinking about it incorrectly.
It seems useful to have a conditional statement which will check to
see if a child template has populated a block.
{% block header %}Page Heading{% endblock %}
If the bl
5 matches
Mail list logo