In short, the question is:

How does a custom tag in a parent template access the nodes of the
derived template in its render() function?

Thanks!

On Sep 22, 8:21 am, Karish <[EMAIL PROTECTED]> wrote:
> I wrote a very simple custom tag, called oneline, which stips all
> newline characters from whatever is inside it.
>
> I want to use it in a base template like this (base.txt):
> {% load text %}{% oneline %}
> {% block body %}{% endblock %}
> {% endoneline %}
>
> In the derived template (derived.txt) I just do:
>
> {% extends 'mail/base.subject' %}
> {% block body %}
> a
> b
> c
> {% endblock %}
>
> But this doesn't work. The oneline tag that I wrote doesn't actually
> see the node of the block within the render function.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to