Do include statements always "include" - or can they be subject to an
"if" statement like this:

{% ifequal menuStyle "dijit" %}
  {% include "baseMainIncludeDijit.html" %}
{% else  %}
  {% include "baseMainIncludeSimpleHead.html" %}
  {% include "baseMainIncludeSimpleBody1.html" %}
  <br/>StartBodyBlock<br/>
  {%block body%}
  Default Block Body
  {%endblock%}
  <br/>EndBodyBlock<br/>
  {% include "baseMainIncludeSimpleBody2.html" %}
{% end if %}


Also - in the case above, I assume the {%block body%} can be in the
included file?  I was having troubles, so I moved it up to the main.
(I have dozens of templates which all inherit/extend from
baseMain.html.  Now I want to try a new fancier menu/system - driven
by Dojo/Dijit, but still allow the old one until the new and
experimental one is ready.

Thanks,
Neal Walters

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to