Haven't tried it, but off the top of my head it seems like you could
accomplish this by combining 'with' (to temporarily rename the child) and
'include':

*app/node.html:*
{{ node.name }} . . .
<blockquote>
  {% for child in node.children %}
    {% with child as node %}{% include 'app/node.html' %}{% endwith %}
  {% endfor %}
</blockquote>

   -- Scott

On Wed, Sep 24, 2008 at 2:17 PM, David Koblas <[EMAIL PROTECTED]> wrote:

>
> I'm not sure if this is possible to do without writing a templatetag
> (ok, that's my theory).
>
> Basic idea is that I have a tree structure that I want to render into a
> template, the one example that I found pre-rendered a template into a
> template variable and then rendered it into the page.
>
> What I would really like to be able to do is something akin to:
>    ...html...
>    {% render node %}
>    <ul>
>    {% render children %}
>    </ul>
>    ....html...
>
> Any quick answers, before I spend the afternoon figuring out if a
> template tag is going to work?
>
> >
>


-- 
http://scott.andstuff.org/ | http://truthadorned.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to