I have solve it!
The point is to use a variable not a constant for recursion's file
name. Why recursion? I've translated my model into rendering context.
And if a field is a relationship with fields, the rendering is the
same.
Here is the template:
{{contextElement.label}}:
On Mon, Aug 31, 2009 at 9:03 AM, gentlestone wrote:
>
> is recursion allowed in templates?
>
> for example can the "xy_template.html" file contain {% include
> "xy_template.html" %}?
>
It's "allowed" in the sense that it's not caught as an error. But it will
lead to infinite recursion...
>
>
2 matches
Mail list logo