Commits

Branko Vukelic committed 733ea7b

Documented del_params template tag

Comments (0)

Files changed (1)

 
 and the output would be::
 
-    ``/foo?foo=bar``
+    /foo?foo=bar
 
 Existing URL parameters are overridden by the ones specified as keyword
 arguments.
 
+{% del_params %}
+----------------
+
+This tag outputs a path stripped of specified parameters, or all query 
+parameters if none are specified. For example, if we are on the
+``/foo?bar=1&baz=2`` URL::
+
+    {% del_param request.get_full_path 'bar' %}
+
+outputs::
+
+    /foo?baz=2
+
+and ::
+
+    {% del_params request.get_full_path %}
+
+outputs::
+
+    /foo
+
+
 {% url_params %}
 ----------------