{ "info": { "author": "Calloway Project", "author_email": "webmaster@callowayproject.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "License :: OSI Approved :: Apache Software License" ], "description": "==============\nDjango URLtags\n==============\n\nDjango URLtags is a collection of template tags and filters for manipulating URLs or adding some convenience methods for common practices.\n\nadd_qs_param\n============\n\n**Usage:** ``{% add_qs_param url varname value %}``\n\nThis tag intelligently adds or replaces the query string parameter ``varname`` and assigns it ``value``.\n\n``url``, ``varname``, and ``value`` can be static values or variables\n\nExamples\n--------\n\n**Adding a single query string parameter**\n\n.. code-block:: django\n\n {% add_qs_param http://example.com/ q 1 %}\n\ngenerates::\n\n http://example.com/?q=1\n\n**Adding a query string parameter to a URL with a query string.**\n\n.. code-block:: django\n\n {% add_qs_param http://example.com/?sort=asc q 1 %}\n\ngenerates::\n\n http://example.com/?sort=asc&q=1\n\n**Adding a query string parameter to a URL that already has that parameter.**\n\n.. code-block:: django\n\n {% add_qs_param http://example.com/?q=5 q 1 %}\n\ngenerates::\n\n http://example.com/?q=1\n\n**Adding a query string parameter to a URL that has a page fragment.**\n\n.. code-block:: django\n\n {% add_qs_param http://example.com/#gohere q 1 %}\n\ngenerates::\n\n http://example.com/?q=1#gohere\n\nadd_fragment\n============\n\n**Usage:** ``{{ url|add_fragment:variable }}`` or ``{{ url|add_fragment:\"fragment\" }}``\n\nThis tag intelligently adds or replaces the URL fragment. You can pass a variable as the parameter to ``add_fragment`` or a static value. You must quote static values.\n\nExample\n-------\n\n.. code-block:: django\n\n {{ url|add_fragment:\"gohere\" }}\n\ngenerates::\n\n http://example.com/#gohere\n\n\nabsurl\n======\n\nJust like Django's `url tag`_ but adds the domain of the current site.\n\n.. _url tag: https://docs.djangoproject.com/en/1.4/ref/templates/builtins/#url\n\nlink\n====\n\n**Usage:** ``{{ object|link }}``\n\nOutputs the object in a anchor tag which is the equivalent of ``{{ object }}``", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://callowayproject.com/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-urltags", "package_url": "https://pypi.org/project/django-urltags/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-urltags/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://callowayproject.com/" }, "release_url": "https://pypi.org/project/django-urltags/0.1/", "requires_dist": null, "requires_python": null, "summary": "django-urltags contains several template tags and filters for messing with URLs", "version": "0.1" }, "last_serial": 790953, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6fcef74b15d8d37501260d4f45632181", "sha256": "ae827278fb421645264b88118e643b68fe43b6d902e3eb6f232779e21ea46bb7" }, "downloads": -1, "filename": "django-urltags-0.1.tar.gz", "has_sig": false, "md5_digest": "6fcef74b15d8d37501260d4f45632181", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 542827, "upload_time": "2012-09-24T12:20:37", "url": "https://files.pythonhosted.org/packages/11/8e/e600a47a20629ec2a7bb6772bb0704afec7d851237782e9298b496924dbc/django-urltags-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6fcef74b15d8d37501260d4f45632181", "sha256": "ae827278fb421645264b88118e643b68fe43b6d902e3eb6f232779e21ea46bb7" }, "downloads": -1, "filename": "django-urltags-0.1.tar.gz", "has_sig": false, "md5_digest": "6fcef74b15d8d37501260d4f45632181", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 542827, "upload_time": "2012-09-24T12:20:37", "url": "https://files.pythonhosted.org/packages/11/8e/e600a47a20629ec2a7bb6772bb0704afec7d851237782e9298b496924dbc/django-urltags-0.1.tar.gz" } ] }