On Monday, July 4, 2011, Thomas Weholt <thomas.weh...@gmail.com> wrote:
> I've created a templatetag called {% kolibri_imports %} which I use
> the in the head-section of my templates. It imports related to
> stylesheets, javascript libraries etc for my kolibri-package. This
> works fine when I've control over the base-template I'm extending, but
> when I want to extend a template which defines a extrahead for me to
> add stuff to, I get an error trying to call my
> kolibri_imports-templatetag. Now I want to call that templatetag
> inside a
>
> {% block extrahead %}
> {% kolibri_imports %}
> {% endblock %}
>
> but I get the following error:
>
> Invalid block tag: 'kolibri_imports', expected 'endblock' or 'endblock
> extrahead'
>
> So; How can I call a defined templatetag inside my {% block extrahead
> %}-block? I've tried
>
> {% block extrahead %}
> {{kolibri_imports }}
>
> But that didn't produce anything.
>
> This is probably simple, but ... thanks for you input.
>
> --
> Mvh/Best regards,
> Thomas Weholt
> http://www.weholt.org
>
> --
> 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.
>
>

Are you loading the tem

-- 
Regards,
Ian Clelland
<clell...@gmail.com>

-- 
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