|
@@ -120,9 +120,13 @@ do them faster than the template language can::
|
|
|
# of the Python objects
|
|
|
len(my_bicycles)
|
|
|
|
|
|
- # Django template filter
|
|
|
- # slower still, because it will have to count them in Python anyway,
|
|
|
- # and because of template language overheads
|
|
|
+.. code-block:: html+django
|
|
|
+
|
|
|
+ <!--
|
|
|
+ Django template filter
|
|
|
+ slower still, because it will have to count them in Python anyway,
|
|
|
+ and because of template language overheads
|
|
|
+ -->
|
|
|
{{ my_bicycles|length }}
|
|
|
|
|
|
Generally speaking, the most appropriate level for the job is the lowest-level
|