This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Django URLtags is a collection of template tags and filters for manipulating URLs or adding some convenience methods for common practices.

add_qs_param

Usage: {% add_qs_param url varname value %}

This tag intelligently adds or replaces the query string parameter varname and assigns it value.

url, varname, and value can be static values or variables

Examples

Adding a single query string parameter

{% add_qs_param http://example.com/ q 1 %}

generates:

http://example.com/?q=1

Adding a query string parameter to a URL with a query string.

{% add_qs_param http://example.com/?sort=asc q 1 %}

generates:

http://example.com/?sort=asc&q=1

Adding a query string parameter to a URL that already has that parameter.

{% add_qs_param http://example.com/?q=5 q 1 %}

generates:

http://example.com/?q=1

Adding a query string parameter to a URL that has a page fragment.

{% add_qs_param http://example.com/#gohere q 1 %}

generates:

http://example.com/?q=1#gohere

add_fragment

Usage: {{ url|add_fragment:variable }} or {{ url|add_fragment:"fragment" }}

This 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.

Example

{{ url|add_fragment:"gohere" }}

generates:

http://example.com/#gohere

absurl

Just like Django’s url tag but adds the domain of the current site.

Release History

Release History

0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-urltags-0.1.tar.gz (542.8 kB) Copy SHA256 Checksum SHA256 Source Sep 24, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting