On Fri, 2009-03-06 at 10:51 -0500, Jacob Kaplan-Moss wrote:
> On Fri, Mar 6, 2009 at 4:25 AM, Thierry wrote:
> > Why is an include tag so much heavier on the template system?
>
> Because it has to search for the given template on the file system.
> Depending on how you've got TEMPLATE_LOADERS an
On Fri, Mar 6, 2009 at 4:25 AM, Thierry wrote:
> Why is an include tag so much heavier on the template system?
Because it has to search for the given template on the file system.
Depending on how you've got TEMPLATE_LOADERS and TEMPLATE_DIRS set,
this could search in dozens of places.
Jacob
--
the following use case
{% for item in items %}
{% with item.score as score %}
{% include rating_small %}
{% endwith %}
{% endfor %}
Using an include tag is very slow compared to pasting the included
template here.
My total template processing time goes up from 0.1 to 0.4 seco
3 matches
Mail list logo