I'm doing that in a few other place (setting the page title, for example). The problem is that I would like to have the extended inside of a block and potentially conditionally (e.g. only include this JavaScript if you're not logged in).

--koblas

On 4/21/10 4:29 PM, Tim Shaffer wrote:
Can you put the whole script tag in a block?

= template.html =

{% block extra-js %}
<script src="foo.js"></script>
<script src="bar.js"></script>
{% endblock %}

= base.html =

{% block extra-js %}{% endblock %}


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@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