X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/ed6b9876b7abff0b2dc6266d6f769c319f358a9c..ac6ebd8b38a46afb0b249574be71a276f95b6efa:/philo/templatetags/nodes.py diff --git a/philo/templatetags/nodes.py b/philo/templatetags/nodes.py index 5ae507d..a926f98 100644 --- a/philo/templatetags/nodes.py +++ b/philo/templatetags/nodes.py @@ -4,6 +4,7 @@ from django.contrib.sites.models import Site from django.core.urlresolvers import reverse, NoReverseMatch from django.template.defaulttags import kwarg_re from django.utils.encoding import smart_str + from philo.exceptions import ViewCanNotProvideSubpath @@ -67,10 +68,13 @@ class NodeURLNode(template.Node): @register.tag(name='node_url') def do_node_url(parser, token): """ - {% node_url [for ] [as ] %} - {% node_url with [for ] [as ] %} - {% node_url [ [ ...] ] [for ] [as ] %} - {% node_url [= [= ...] ] [for ] [as ]%} + Usage:: + + {% node_url [for ] [as ] %} + {% node_url with [for ] [as ] %} + {% node_url [ [ ...] ] [for ] [as ] %} + {% node_url [= [= ...] ] [for ] [as ] %} + """ params = token.split_contents() tag = params[0]