Re: template recursion

2009-08-31 Thread gentlestone
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}}:

Re: template recursion

2009-08-31 Thread Karen Tracey
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... > >