On Sat, 2007-05-05 at 21:56 +0000, tejas wrote:
> Hi All
> 
> I've been using the really nice idea of template blocks in django for
> adding javascript code
> 
> So I have a main js block for javascript in my base.html
> 
> When I extend the base, and I need javascript - I just make a new js
> block and use super to append my javascript.
> 
> This all works fine except for when I use inclusion tags
> 
> the templates in the inclusion tags seem to have problems extending
> base.html
> 
> I was just wondering how I can get round this, or if there's a more
> elegant method for adding javascript code?

This problem doesn't surprise me a lot, since inclusion tags were
written to be a shortcut for inserting very simple HTML fragments, not
necessarily for hugely complex things that did inheritance and the like.
So you may have to trace through what the differences are between the
way an inclusion tag is constructed and normal template creation and
find out what is missing from the inclusion tag. It may well be easy to
fix, but it's quite possible that nobody has had the motivation to make
it work before.

Regards,
Malcolm



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

Reply via email to