Minor corrections to shipherd recursenavigation docstring.
authorStephen Burrows <stephen.r.burrows@gmail.com>
Mon, 28 Feb 2011 21:56:39 +0000 (16:56 -0500)
committerStephen Burrows <stephen.r.burrows@gmail.com>
Mon, 28 Feb 2011 21:56:39 +0000 (16:56 -0500)
contrib/shipherd/templatetags/shipherd.py

index fa4ec3e..c416e4e 100644 (file)
@@ -53,14 +53,15 @@ def recursenavigation(parser, token):
        Based on django-mptt's recursetree templatetag. In addition to {{ item }} and {{ children }},
        sets {{ active }} and {{ active_descendants }} in the context.
        
-       Note that the tag takes one variable, which is a Node instance.
+       Note that the tag takes two variables: a Node instance and the key of the navigation to
+       be recursed.
        
        Usage:
                <ul>
                        {% recursenavigation node main %}
                                <li{% if active %} class='active'{% endif %}>
-                                       {{ navigation.text }}
-                                       {% if navigation.get_children %}
+                                       {{ item.text }}
+                                       {% if children %}
                                                <ul>
                                                        {{ children }}
                                                </ul>